public override IActionResult UpdateCar(Car car) { long idCar = _carService.UpdateCar(car); return(StatusCode(200, idCar)); }
public override IActionResult ReadCarById(long idCar) { Car car = _carService.ReadCarById(idCar); return(car == null?StatusCode(404, null) : StatusCode(200, car)); }