2013-08-12 15:06:12 +02:00
|
|
|
|
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!
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2013-07-01 14:23:56 +10:00
|
|
|
|
}
|