예제 #1
0
        public ActionResult Delete(int id, DateTime date)
        {
            _foodItemServices.DeleteFoodItem(id);

            var viewModel = GetFoodItemTableViewModel(date);

            return(PartialView("FoodItemTable", viewModel));
        }
예제 #2
0
        public ActionResult Delete(int id)
        {
            _foodItemServices.DeleteFoodItem(id);

            return(RedirectToAction("Index"));
        }