Remove membertype from content type mapper

This commit is contained in:
Per Ploug
2015-06-05 12:16:08 +02:00
parent 1eb98a7478
commit 3cf9ceb2a6

View File

@@ -34,7 +34,7 @@ namespace Umbraco.Web.Models.Mapping
{
config.CreateMap<IMediaType, ContentTypeBasic>();
config.CreateMap<IContentType, ContentTypeBasic>();
config.CreateMap<IMemberType, ContentTypeBasic>();
config.CreateMap<ContentTypeDisplay, IContentType>()
.ConstructUsing((ContentTypeDisplay source) => new ContentType(source.ParentId))
@@ -84,11 +84,9 @@ namespace Umbraco.Web.Models.Mapping
if(add_ct != null)
dest.AddContentType(add_ct);
}
});
config.CreateMap<ContentTypeSort, int>().ConvertUsing(x => x.Id.Value);
config.CreateMap<IContentTypeComposition, string>().ConvertUsing(x => x.Alias);
config.CreateMap<IContentType, ContentTypeDisplay>()