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