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