// 刪除點餐紀錄 public ActionResult Cancel(string OrderNo) { RepositoryAccounting repo = new RepositoryAccounting(); OrderMD data = repo.GetOrderMD(OrderNo); return(data == null?PartialView("_Error") : PartialView("_Cancel", data)); }
public ActionResult Check(OrderMD Data) { RepositoryAccounting repo = new RepositoryAccounting(); OrderMD data = repo.GetOrderMD(Data); ModelState.Clear(); return(data == null?PartialView("_Error") : PartialView("_Check", data)); }