Exemple #1
0
        public ActionResult Delete(int id)
        {
            var recipe = RecipeRepository.GetById(id);

            RecipeRepository.DeleteSpecials(recipe.Guid);
            RecipeRepository.Delete(recipe.Guid);
            RecipeRepository.DeleteVotes(recipe.Guid);
            ViewBag.Response           = Globals.InfoRecipeDeleted;
            SessionHandler.ForceReload = true;
            return(View("Response"));
        }