2020-02-15 19:32:16 +00:00
|
|
|
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>()
|
2020-02-15 19:32:16 +00:00
|
|
|
.ForMember(d => d.State, d => d.MapFrom<ActivityStateResolver>());
|
|
|
|
|
|
|
|
|
|
CreateMap<VersionOptionsInput, VersionOptions>().ConvertUsing<VersionOptionsConverter>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|