Пример #1
0
        public async Task <IActionResult> PutCar(int id, Car car)
        {
            var responseCarAppService = await _carAppService.PutCarApplicationService(id, car);

            bool noErrorsInValidations = responseCarAppService == null;

            if (noErrorsInValidations)
            {
                return(NoContent());
            }
            return(BadRequest(responseCarAppService));
        }