Cleanup, reduce AutoMapper exposure

This commit is contained in:
Stephan
2019-03-19 19:16:24 +01:00
parent b43e113cb6
commit ef5646fa3b
39 changed files with 112 additions and 96 deletions

View File

@@ -9,7 +9,6 @@ using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.ModelBinding;
using System.Web.Security;
using AutoMapper;
using Umbraco.Core;
using Umbraco.Core.Cache;
using Umbraco.Core.Configuration;
@@ -504,7 +503,7 @@ namespace Umbraco.Web.Editors
var pagedResult = new PagedResult<ContentItemBasic<ContentPropertyBasic>>(totalChildren, pageNumber, pageSize);
pagedResult.Items = children.Select(content =>
Mapper.Map<IContent, ContentItemBasic<ContentPropertyBasic>>(content,
AutoMapper.Mapper.Map<IContent, ContentItemBasic<ContentPropertyBasic>>(content,
opts =>
{