Beispiel #1
0
        public override IActionResult UpdateCar(Car car)
        {
            long idCar = _carService.UpdateCar(car);

            return(StatusCode(200, idCar));
        }
Beispiel #2
0
        public override IActionResult ReadCarById(long idCar)
        {
            Car car = _carService.ReadCarById(idCar);

            return(car == null?StatusCode(404, null) : StatusCode(200, car));
        }