fixes repository mapping the GUID id for redirect urls and removes unused properties

This commit is contained in:
Shannon
2016-08-08 14:47:48 +02:00
parent 4301af108f
commit 9ad84a7eab
2 changed files with 2 additions and 7 deletions

View File

@@ -117,6 +117,7 @@ JOIN umbracoNode ON umbracoRedirectUrl.contentKey=umbracoNode.uniqueID");
try
{
url.DisableChangeTracking();
url.Key = dto.Id;
url.Id = dto.Id.GetHashCode();
url.ContentId = dto.ContentId;
url.ContentKey = dto.ContentKey;

View File

@@ -9,13 +9,7 @@ namespace Umbraco.Web.Models.ContentEditing
{
[DataMember(Name = "searchResults")]
public IEnumerable<ContentRedirectUrl> SearchResults { get; set; }
[DataMember(Name = "hasSearchResults")]
public bool HasSearchResults { get; set; }
[DataMember(Name = "hasExactMatch")]
public bool HasExactMatch { get; set; }
[DataMember(Name = "totalCount")]
public long TotalCount { get; set; }