Exemple #1
0
        public IActionResult Update(string id, Pizza cambioDePizza)
        {
            var pizza = _pizzaService.Get(id);

            if (pizza == null)
            {
                return(NotFound());
            }
            else
            {
                _pizzaService.ActualizandoDatos(id, cambioDePizza);
                return(NoContent());
            }
        }