public ActionResult UpdateIngredient(int id, Recipe recipe) { recipe.RecipeId = id; bool updated = recipeDAO.AddIngredientsToRecipe(recipe); if (updated) { return(NoContent()); } else { return(NotFound()); } }
public ActionResult UpdateIngredient(int id, Recipe recipe) { recipe.RecipeId = id; bool updated = recipeDAO.AddIngredientsToRecipe(recipe); if (updated) { return(NoContent()); } else { return(NotFound()); } }