예제 #1
0
        public ActionResult UpdateIngredient(int id, Recipe recipe)
        {
            recipe.RecipeId = id;
            bool updated = recipeDAO.AddIngredientsToRecipe(recipe);

            if (updated)
            {
                return(NoContent());
            }
            else
            {
                return(NotFound());
            }
        }