public ActionResult ModifyRecipe([FromBody] Recipe updatedRecipe) { Recipe existingItem = dao.GetRecipeById(updatedRecipe.Id); if (existingItem == null) { return(NotFound()); } existingItem.Name = updatedRecipe.Name; existingItem.Instructions = updatedRecipe.Instructions; existingItem.Ingredients = updatedRecipe.Ingredients; dao.EditRecipe(existingItem); return(NoContent()); }