Example #1
0
        public async Task <ActionResult <BlogEntry> > Get(int id)
        {
            var result = await _repository.Get(id, t => t.BlogPosts);

            if (result == null)
            {
                return(NoContent());
            }
            return(Ok(result));
        }
Example #2
0
 public async Task <IEnumerable <T> > Get()
 {
     return(await selectRepository.Get());
 }