Files
Umbraco-CMS/src/Umbraco.Web/Models/Mapping/SectionModelMapper.cs

16 lines
485 B
C#
Raw Normal View History

using AutoMapper;
using Umbraco.Core;
using Umbraco.Core.Models.Mapping;
using Umbraco.Web.Models.ContentEditing;
namespace Umbraco.Web.Models.Mapping
{
internal class SectionModelMapper : MapperConfiguration
{
public override void ConfigureMappings(IConfiguration config, ApplicationContext applicationContext)
{
config.CreateMap<Section, Core.Models.Section>()
.ReverseMap(); //backwards too!
}
}
}