private bool ReturnDateForCarId(int arg) { IRentalDal rentaldal = new EfRentalDal(); var result = rentaldal.GetAll(r => r.CarId == arg); if (result.Count > 0) { return(false); } return(true); }
public IDataResult <List <Rental> > GetAll() { return(new SuccessDataResult <List <Rental> >(_rentalDal.GetAll())); }