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)); }
public async Task <IEnumerable <T> > Get() { return(await selectRepository.Get()); }