public IActionResult GetByMotor(string motor) { var cars = _carsService.GetByMotor(motor); if (cars.Count == 0) { return(NoContent()); } return(Ok(cars)); }