15 lines
421 B
C#
15 lines
421 B
C#
|
|
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, Umbraco.Core.Sections.Section>()
|
|||
|
|
.ReverseMap(); //backwards too!
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|