public ActionResult Detail(string ActionMode, string No) { DetailModel model = new DetailModel(); model.ActionMode = ActionMode; model.No = No; if (ActionMode != "Add") { if (!model.GetDetail()) { TempData["ResultMessage"] = model.ErrMsg; return(RedirectToAction("SearchList")); } } return(View(model)); }
public List <OrderDetail> GetDetail() { int OrderID = View.OrderID; return(DetailModel.GetDetail(OrderID)); }