public IEnumerable <BreweryViewModel> GetBreweries()
 {
     return(_breweryListProvider.GetBreweries().Select(brewery => new BreweryViewModel()
     {
         Id = brewery.Id,
         Name = brewery.Name,
         IsFavorite = brewery.IsFavorite
     }
                                                       ).ToList());
 }
Ejemplo n.º 2
0
 public IEnumerable <Brewery> GetBreweries()
 {
     return(_breweryListProvider.GetBreweries());
 }