public List <Car> Get(string type, string searchkey, int yearmin, int yearmax, int pricemin, int pricemax) { var toReturn = repo.GetAllCars(type, searchkey, yearmin, yearmax, pricemin, pricemax); return(toReturn); }
public ActionResult <IEnumerable <CarReadDto> > GetAllCars() { var carItems = _repository.GetAllCars(); return(Ok(_mapper.Map <IEnumerable <CarReadDto> >(carItems))); }
public IEnumerable <CarModel> GetAllCars() { return(carRepo.GetAllCars()); }