Beispiel #1
0
        public ActionResult DeleteRecipe(int recipeId)
        {
            int categoryId = _recipeProvider.GetRecipeById(recipeId).CategoryId;

            _recipeProvider.DeleteRecipe(recipeId);

            return(RedirectToAction("ShowRecipesByCategoryId", new { categoryId }));
        }