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

15 lines
411 B
C#
Raw Normal View History

using AutoMapper;
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)
{
config.CreateMap<Section, Core.Models.Section>()
.ReverseMap(); //backwards too!
}
}
}