public ActionResult DeleteRecipe(int recipeId) { int categoryId = _recipeProvider.GetRecipeById(recipeId).CategoryId; _recipeProvider.DeleteRecipe(recipeId); return(RedirectToAction("ShowRecipesByCategoryId", new { categoryId })); }
public ActionResult DeleteRecipe(int recipeId) { int categoryId = _recipeProvider.GetRecipeById(recipeId).CategoryId; _recipeProvider.DeleteRecipe(recipeId); return(RedirectToAction("ShowRecipesByCategoryId", new { categoryId })); }