Example #1
0
 public IEnumerable <Car> GetAllCars()
 {
     try
     {
         _log.Info("Get  all cars request reseived");
         var cars = _provider.Load();
         return(cars);
     }
     catch (Exception ex)
     {
         _log.Error("Error:", ex);
         throw new Exception("Error", ex);
     }
 }