elsa-core/src/server/Elsa.Server.GraphQL/Mapping/MappingProfile.cs

18 lines
519 B
C#
Raw Normal View History

using AutoMapper;
using Elsa.Models;
using Elsa.Server.GraphQL.Models;
using Elsa.Server.GraphQL.Types;
namespace Elsa.Server.GraphQL.Mapping
{
public class MappingProfile : Profile
{
public MappingProfile()
{
2020-10-09 20:26:19 +00:00
CreateMap<ActivityDefinitionInput, ActivityDefinition>()
.ForMember(d => d.State, d => d.MapFrom<ActivityStateResolver>());
CreateMap<VersionOptionsInput, VersionOptions>().ConvertUsing<VersionOptionsConverter>();
}
}
}