public ActionResult Delete(int id, DateTime date) { _foodItemServices.DeleteFoodItem(id); var viewModel = GetFoodItemTableViewModel(date); return(PartialView("FoodItemTable", viewModel)); }
public ActionResult Delete(int id) { _foodItemServices.DeleteFoodItem(id); return(RedirectToAction("Index")); }