Simplifies the model mapping, uses strongly typed values

This commit is contained in:
Shannon
2017-09-28 14:54:18 +10:00
parent 62cda02ded
commit 387faca71e
3 changed files with 35 additions and 72 deletions

View File

@@ -5,7 +5,6 @@ using Umbraco.Core.Models;
namespace Umbraco.Web.Models.ContentEditing
{
/// <summary>
/// A model representing a content item to be displayed in the back office
/// </summary>
@@ -30,10 +29,10 @@ namespace Umbraco.Web.Models.ContentEditing
public string TemplateAlias { get; set; }
[DataMember(Name = "allowedTemplates")]
public object AllowedTemplates { get; set; }
public IDictionary<string, string> AllowedTemplates { get; set; }
[DataMember(Name = "docTypeValue")]
public object DocTypeValue { get; set; }
[DataMember(Name = "documentType")]
public ContentTypeBasic DocumentType { get; set; }
[DataMember(Name = "urls")]
public string[] Urls { get; set; }