Exemple #1
0
        public ActionResult <ReceitaIngrediente> DeleteIngrediente(int id)
        {
            var ingrediente = ingredienteService.ObterPorId(id);

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

            ingredienteService.Remover(ingrediente);
            return(ingrediente);
        }