public static void AddSelfLink(this MinimalSpeakerModel speaker, UrlHelper url) { var selfLink = ModelFactory.CreateLink(url, "self", "Speaker", new { speakerId = speaker.Id }); speaker.Links.Add(selfLink); }
public static void AddSelfLink(this MinimalSpeakerModel speaker, UrlHelper url) { var selfLink = ModelFactory.CreateLink(url, "self", "Speaker", new { speakerId = speaker.Id }); speaker.Links.Add(selfLink); }