public IResult Update(CarRental CarRental)
 {
     if (CarRental.RentDate >= DateTime.Now)
     {
         _carRentalDal.Update(CarRental);
         return(new SuccessResult(CarRentalMessages.CarRentUpdated));
     }
     else
     {
         return(new ErrorResult(CarRentalMessages.CarRentNameInvalid));
     }
 }
Exemple #2
0
 public IResult Update(Rental rental)
 {
     _carRentalDal.Update(rental);
     return(new SuccessResult(Messages.RentalUpdated));
 }