// // GET: /Employee/Create public ActionResult Create() { ICreditUnion_DAL _cu = new CreditUnion_DAL(); ViewBag.CU = new SelectList(_cu.GetAll(), "id", "CUName"); ViewBag.usertype = Session["UserRole"]; ViewBag.CUId = Session["cuid"]; ViewBag.preapprovalid = _dashboard.getPreAprrovalID(); if ((int)Session["UserRole"] > 0) { CreditUnion Cre = new CreditUnion(); Cre = _cu.Find((int)ViewBag.CUId); ViewBag.CUName = Cre.CUName; ViewBag.address = Cre.Address; ViewBag.phone = Cre.Phone; ViewBag.Fax = Cre.Fax; } else { ViewBag.CUName = ""; ViewBag.address = ""; ViewBag.phone = ""; ViewBag.Fax = ""; } return(View()); }
// // GET: /Employee/Create public ActionResult Create() { ICreditUnion_DAL _cu = new CreditUnion_DAL(); ViewBag.CU = new SelectList(_cu.GetAll(), "id", "CUName"); return(View()); }
// // GET: /Employee/Edit/5 public ActionResult Edit(int id) { ICreditUnion_DAL _cu = new CreditUnion_DAL(); ViewBag.CU = new SelectList(_cu.GetAll(), "id", "CUName"); return(View(_dashboard.Find(id))); }
// // GET: /Employee/Create public ActionResult Create() { ICreditUnion_DAL _cu = new CreditUnion_DAL(); ViewBag.CU = new SelectList(_cu.GetAll(), "id", "CUName"); IDealer_DAL _Del = new Dealer_DAL(); ViewBag.Del = new SelectList(_Del.GetAll(), "id", "DealerName"); ViewBag.usertype = 0; return(View()); }
// // GET: /Employee/Edit/5 public ActionResult Edit(int id) { ICreditUnion_DAL _cu = new CreditUnion_DAL(); ViewBag.CU = new SelectList(_cu.GetAll(), "id", "CUName"); IDealer_DAL _Del = new Dealer_DAL(); ViewBag.Del = new SelectList(_Del.GetAll(), "id", "DealerName"); User _user = new User(); _user = _dashboard.Find(id); ViewBag.usertype = _user.usertype; return(View(_user)); }