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