Exemple #1
0
 public List <Brewery> GetAllBreweries()
 {
     try
     {
         List <Brewery> breweries = repo.GetAllBreweriesAsync().Result;
         Log.Information("Successfully Retrieved All Breweries");
         return(breweries);
     }catch (Exception e)
     {
         Log.Information($"Failed to retrieve all breweries - {e.Message}");
         return(new List <Brewery>());
     }
 }