コード例 #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>());
     }
 }