Exemplo n.º 1
0
        public IActionResult Delete(int recipeId)
        {
            RecipeResponse deletedRecipe = repository.DelecteRecipe(recipeId);

            if (deletedRecipe != null)
            {
                TempData["message"] = $"{deletedRecipe.FoodName} was deletd!";
            }
            return(RedirectToAction("RecipeList"));
        }