Use RelatedLink class instead of weird extra inline class, convert UDI values

This commit is contained in:
Sebastiaan Janssen
2017-03-14 10:26:13 +01:00
parent 6f516a15aa
commit a2ca753dd9
2 changed files with 34 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using Umbraco.Core.Models;
namespace Umbraco.Web.Models
{
@@ -14,5 +15,7 @@ namespace Umbraco.Web.Models
public bool IsInternal { get; set; }
[JsonProperty("type")]
public RelatedLinkType Type { get; set; }
[JsonProperty("content")]
public IPublishedContent Content { get; set; }
}
}