Пример #1
0
 public IDataResult <Rentals> GetById(int id)
 {
     return(new SuccessDataResult <Rentals>(_rentalsDal.Get(r => r.Id == id)));
 }
Пример #2
0
 public IDataResult <Rental> GetById(int id)
 {
     return(new SuccessDataResult <Rental>(_rentalsDal.Get(p => p.RentalId == id)));
 }
Пример #3
0
 IDataResult <Rentals> IRentalsService.GetById(int Id)
 {
     return(new SuccesDataResult <Rentals>(_rentalsDal.Get(p => p.CarId == Id)));
 }
Пример #4
0
 public IDataResult <Rentals> GetByBrandName(int brandName)
 {
     return(new SuccessDataResult <Rentals>(_rentalDal.Get(r => r.BrandName == brandName)));
 }
Пример #5
0
 public IDataResult <Rentals> GetById(int rentalId)
 {
     return(new SuccessDataResult <Rentals>(_rentalDal.Get(r => r.RentalsId == rentalId)));
 }
        public IDataResult <Rentals> GetById(int rentalId)
        {
            var getById = _rentalDal.Get(u => u.Id == rentalId);

            return(new SuccessDataResult <Rentals>(getById));
        }