public IEnumerable <Car> GetCarsByPriceLowerThan(double price) { var cars = carRepository.GetCarsByPriceLowerThan(price); Guid carIdGuid = Guid.Empty; if (cars == null) { throw new EntityNotFoundException(carIdGuid); } return(cars); }
public ActionResult GetCarsByPriceLowerThan(double price) { var cars = carRepository.GetCarsByPriceLowerThan(price); return(View(cars)); }