public ActionResult RefreshOrder() { RepositoryOrder repo = new RepositoryOrder(); List <OrderViewModel> data = repo.Query(); return(Json(data)); }
// 出餐明細 public ActionResult Detail() { RepositoryOrder repo = new RepositoryOrder(); List <OrderViewModel> data = repo.Query(); return(View(data)); }
// 點餐明細 public ActionResult OrderDetail(string Date) { RepositoryOrder repo = new RepositoryOrder(); List <OrderViewModel> data = repo.Query().Where(x => x.UpdateTime.ToString("yyyy/MM/dd").Equals(Date)).ToList(); ViewBag.Date = Date; return(PartialView("_OrderDetail", data)); }