private void Enrich(MediaModel media, UrlHelper url) { var selfUrl = url.Link("DefaultApi", new { controller = "media", id = media.Id }); media.AddLink(new SelfLink(selfUrl)); media.AddLink(new EditLink(selfUrl)); }
private void Enrich(MediaModel media, UrlHelper url) { var selfUrl = url.Link("DefaultApi", new { controller = "media", id = media.Id }); media.AddLink(new SelfLink(selfUrl)); media.AddLink(new EditLink(selfUrl)); }