예제 #1
0
 public bool Insert(RentalRequests entity)
 {
     try
     {
         bool isSuccess;
         using (var rentalRequestRepository = new RentalRequestRepository())
         {
             isSuccess = rentalRequestRepository.Insert(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("CarRental.BusinessLogic.Concretes: " + entity.GetType().ToString() + "::Insert:Error occured.", ex);
     }
 }