Beispiel #1
0
        public async Task <ActionResult <Ingredient> > DeleteIngredients(int id)
        {
            var ingredients = await _ingredient.GetIngredients(id);

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

            await _ingredient.DeleteIngredients(ingredients.Value.Id);

            return(ingredients);
        }