Simplifies the model mapping, uses strongly typed values
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user