Refactor more mappers
This commit is contained in:
@@ -17,18 +17,18 @@ namespace Umbraco.Web.Models.Mapping
|
||||
|
||||
public void SetMaps(Mapper mapper)
|
||||
{
|
||||
mapper.SetMap<ISection, Section>(source => new Section(), Map);
|
||||
mapper.Define<ISection, Section>(source => new Section(), Map);
|
||||
|
||||
// this is for AutoMapper ReverseMap - but really?
|
||||
mapper.SetMap<Section, ContentSection>();
|
||||
mapper.SetMap<Section, ContentSection>();
|
||||
mapper.SetMap<Section, ManifestSection>(Map);
|
||||
mapper.SetMap<Section, MediaSection>();
|
||||
mapper.SetMap<Section, MembersSection>();
|
||||
mapper.SetMap<Section, PackagesSection>();
|
||||
mapper.SetMap<Section, SettingsSection>();
|
||||
mapper.SetMap<Section, TranslationSection>();
|
||||
mapper.SetMap<Section, UsersSection>();
|
||||
mapper.Define<Section, ContentSection>();
|
||||
mapper.Define<Section, ContentSection>();
|
||||
mapper.Define<Section, ManifestSection>(Map);
|
||||
mapper.Define<Section, MediaSection>();
|
||||
mapper.Define<Section, MembersSection>();
|
||||
mapper.Define<Section, PackagesSection>();
|
||||
mapper.Define<Section, SettingsSection>();
|
||||
mapper.Define<Section, TranslationSection>();
|
||||
mapper.Define<Section, UsersSection>();
|
||||
}
|
||||
|
||||
// Umbraco.Code.MapAll -RoutePath
|
||||
|
||||
Reference in New Issue
Block a user