public IEnumerable <Car> GetCarsByPriceLowerThan(double price)
        {
            var cars = carRepository.GetCarsByPriceLowerThan(price);

            Guid carIdGuid = Guid.Empty;

            if (cars == null)
            {
                throw new EntityNotFoundException(carIdGuid);
            }

            return(cars);
        }
示例#2
0
        public ActionResult GetCarsByPriceLowerThan(double price)
        {
            var cars = carRepository.GetCarsByPriceLowerThan(price);

            return(View(cars));
        }