// GET: AccountTable public ActionResult Index() { DBL.AccountTableDBL oAccountTableDBL = new DBL.AccountTableDBL(); List <POCO.AccountTable> oLAccountTable = oAccountTableDBL.M_AccountTable_Get().ToList(); return(View(oLAccountTable)); }
// GET: AccountsWithCentersCostsTable/Edit/5 public ActionResult Edit(Int64 ParID, Int64 ParAccountNo, Int64 ParCentersCostsNo) { DBL.AccountTableDBL oAccountTableDBL = new DBL.AccountTableDBL(); List <POCO.AccountTable> oLAccountTable = oAccountTableDBL.M_AccountTable_Get().ToList(); DBL.CentersCostsTableDBL oCentersCostsTableDBL = new DBL.CentersCostsTableDBL(); List <POCO.CentersCostsTable> oLCentersCostsTable = oCentersCostsTableDBL.M_CentersCostsTable_Get().ToList(); ViewBag.AccountNo = new SelectList(oLAccountTable.Where(a => a.AccountNo != 0), "AccountNo", "AccountName", ParAccountNo); ViewBag.CentersCostsNo = new SelectList(oLCentersCostsTable.Where(a => a.CentersCostsNo != 0), "CentersCostsNo", "CentersCostsName", ParCentersCostsNo); return(View()); }