Ejemplo n.º 1
0
        public IActionResult CarAdd([FromBody] Car car)
        {
            var result = _carService.AddACar(car);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }