public IDataResult <Rentals> GetById(int id) { return(new SuccessDataResult <Rentals>(_rentalsDal.Get(r => r.Id == id))); }
public IDataResult <Rental> GetById(int id) { return(new SuccessDataResult <Rental>(_rentalsDal.Get(p => p.RentalId == id))); }
IDataResult <Rentals> IRentalsService.GetById(int Id) { return(new SuccesDataResult <Rentals>(_rentalsDal.Get(p => p.CarId == Id))); }
public IDataResult <Rentals> GetByBrandName(int brandName) { return(new SuccessDataResult <Rentals>(_rentalDal.Get(r => r.BrandName == brandName))); }
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)); }