Beispiel #1
0
        //
        // 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());
        }
Beispiel #2
0
        //
        // 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));
        }