Exemple #1
0
        public IHttpActionResult Get()
        {
            var results = _tagService.AllTags.ToList()
                          .Select(t => TheModelFactory.CreateTagBasicModel(Url, "Tags", t));

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

            return(Ok(results));
        }