public IActionResult GetByYear(int year) { try { return(Ok(_modelService.GetByYear(year))); } catch (VehicleModelNotFoundException e) { return(BadRequest(e.Message)); } }