2017-07-20 11:21:28 +02:00
|
|
|
|
using AutoMapper;
|
2015-01-06 15:36:14 +11:00
|
|
|
|
using Umbraco.Core.Models;
|
|
|
|
|
|
using Relation = Umbraco.Web.Models.ContentEditing.Relation;
|
|
|
|
|
|
using RelationType = Umbraco.Web.Models.ContentEditing.RelationType;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Models.Mapping
|
|
|
|
|
|
{
|
2017-09-20 20:06:46 +02:00
|
|
|
|
internal class RelationMapperProfile : Profile
|
2015-01-06 15:36:14 +11:00
|
|
|
|
{
|
2017-09-20 20:06:46 +02:00
|
|
|
|
public RelationMapperProfile()
|
2015-01-06 15:36:14 +11:00
|
|
|
|
{
|
|
|
|
|
|
//FROM IRelationType TO RelationType
|
2017-07-19 13:42:47 +02:00
|
|
|
|
CreateMap<IRelationType, RelationType>();
|
2015-01-06 15:36:14 +11:00
|
|
|
|
|
|
|
|
|
|
//FROM IRelation TO Relation
|
2017-07-19 13:42:47 +02:00
|
|
|
|
CreateMap<IRelation, Relation>();
|
2015-01-06 15:36:14 +11:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2017-07-20 11:21:28 +02:00
|
|
|
|
}
|