Example #1
0
        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);
        }
Example #2
0
 public IDataResult <List <Rental> > GetAll()
 {
     return(new SuccessDataResult <List <Rental> >(_rentalDal.GetAll()));
 }