Stop exposing mapper in MapperContext

This commit is contained in:
Stephan
2019-04-07 11:26:47 +02:00
parent 1af431a27d
commit 8049c40f90
13 changed files with 165 additions and 92 deletions

View File

@@ -106,7 +106,7 @@ namespace Umbraco.Web.Models.Mapping
protected virtual List<ContentPropertyDisplay> MapProperties(IContentBase content, List<Property> properties, MapperContext context)
{
// must pass the context through
return properties.OrderBy(x => x.PropertyType.SortOrder).Select(x => context.Mapper.Map<ContentPropertyDisplay>(x, context)).ToList();
return properties.OrderBy(x => x.PropertyType.SortOrder).Select(x => context.Map<ContentPropertyDisplay>(x)).ToList();
}
}