private static void BuildTagLinks(UrlHelper urlHelper, Tag tag) { tag.SelfLink = urlHelper.ApiLink(tag.Id, "tags").ToString(); tag.Links.Add(new Link { LinkName = "tagdrills", Href = urlHelper.ApiLink(tag.Id, "tagdrills", "ChildApiRoute").ToString() }); }
private static void BuildDrillLinks(UrlHelper urlHelper, Drill drill) { drill.SelfLink = urlHelper.ApiLink(drill.Id, "drills").ToString(); }