This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Landmark | |
{ | |
public string Id { get; set; } | |
public string Title { get; set; } | |
public string Latitude { get; set; } | |
public string Longitude { get; set; } | |
public string Distance { get; set; } | |
} | |
public class LandmarkController : ApiController | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static bool Implements(this Item item, params ID[] templateIds) | |
{ | |
if (templateIds.Length == 0) | |
{ | |
throw new ArgumentOutOfRangeException("templateIds", "must include at least one template"); | |
} | |
if (item == null || item.Template == null) | |
{ | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Sitecore; | |
using Sitecore.Configuration; | |
using Sitecore.Data; | |
using Sitecore.Data.Fields; | |
using Sitecore.Data.Items; |
NewerOlder