예제 #1
0
        //Delete Meal
        public ActionResult ProcessMealToDelete(int id)
        {
            var MealDBInterface = new MealDAO();

            MealDBInterface.DeleteMealfromMealDB(id);
            List <MealViewModel> AllMeals = new List <MealViewModel>();

            AllMeals = MealDBInterface.FetchAll();
            return(View("Index", AllMeals));
        }