Ejemplo n.º 1
0
 public async Task <List <Beer> > GetBeers()
 {
     return(await
            Beers
            .Include(b => b.Brewery)
            .Include(b => b.WholesalerStocks)
            .ThenInclude(ws => ws.Wholesaler)
            .ToListAsync());
 }
Ejemplo n.º 2
0
 /// <inheritdoc />
 public async Task <List <Beer> > GetAllBeersWithReviewsAsync()
 {
     return(await Beers.Include(b => b.Reviews)
            .ToListAsync());
 }