public IHttpActionResult Get() { var results = _tagService.AllTags.ToList() .Select(t => TheModelFactory.CreateTagBasicModel(Url, "Tags", t)); return(Ok(results)); }
public IHttpActionResult Get(int bookId) { var results = _tagService.GetTagsForBook(bookId) .ToList() .Select(f => TheModelFactory.CreateTagBasicModel(Url, "Tags", f)); return(Ok(results)); }