Esempio n. 1
0
 public async Task <Blog> GetBlogWithAllPostsAsync(int blogId)
 {
     return(await GetBlogWithAllPostsQuery
            .SingleOrDefaultAsync(o => o.BlogId == blogId));
 }
Esempio n. 2
0
 public Blog GetBlogWithAllPosts(int blogId)
 {
     return(GetBlogWithAllPostsQuery
            .SingleOrDefault(o => o.BlogId == blogId));
 }