public IHttpActionResult Search(string type, string term, decimal minPrice, decimal maxPrice, int minYear, int maxYear) { IEnumerable <Vehicle> found = vRepo.Search(type, term, minPrice, maxPrice, minYear, maxYear); if (found == null) { return(NotFound()); } return(Ok(found)); }