Ejemplo n.º 1
0
        public IActionResult Delete(string id)
        {
            var car = _carService.GetItem(id);

            if (car == null)
            {
                return(NotFound());
            }

            _carService.Delete(id);

            return(NoContent());
        }