Initial create and edit

This commit is contained in:
Kenn Jacobsen
2018-10-27 21:18:03 +02:00
parent 83f73c085f
commit 68f05e05d1
9 changed files with 389 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
using AutoMapper;
using Umbraco.Core.Models;
using Umbraco.Web.Models.ContentEditing;
using Stylesheet = Umbraco.Core.Models.Stylesheet;
namespace Umbraco.Web.Models.Mapping
{
@@ -20,6 +21,12 @@ namespace Umbraco.Web.Models.Mapping
.ForMember(dest => dest.Path, opt => opt.Ignore())
.ForMember(dest => dest.Snippet, opt => opt.Ignore());
CreateMap<Stylesheet, CodeFileDisplay>()
.ForMember(dest => dest.FileType, opt => opt.Ignore())
.ForMember(dest => dest.Notifications, opt => opt.Ignore())
.ForMember(dest => dest.Path, opt => opt.Ignore())
.ForMember(dest => dest.Snippet, opt => opt.Ignore());
CreateMap<CodeFileDisplay, IPartialView>()
.IgnoreEntityCommonProperties()
.ForMember(dest => dest.Id, opt => opt.Ignore())