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); }