public ActionResult Index() { QueryViewModel query = new QueryViewModel(); query.CUS_Ordes = context.GetByCusID("ALFKI"); //保存下拉清單資料 ViewBag.CustomerLists = GetCustomerDropDown("ALFKI"); return View(query); }
public ActionResult Index(QueryViewModel param) { string _param = param.QUERY_PARAM.CustomerID; QueryViewModel query = new QueryViewModel(); query.CUS_Ordes = context.GetByCusID(_param); //保存下拉清單資料 ViewBag.CustomerLists = GetCustomerDropDown(_param); return View(query); }