예제 #1
0
        // GET: Admin/NguoiDung/Edit/5
        public ActionResult Edit(int id)
        {
            var dao = new LoaiNguoiDungDao();

            ViewBag.LoaiNguoiDungID = new SelectList(dao.toList(), "IDLOAINGUOIDUNG", "TENLOAINGUOIDUNG");
            return(View(db.NGUOIDUNGs.Find(id)));
        }
예제 #2
0
        // GET: Admin/NguoiDung/Create
        public ActionResult Create()
        {
            var dao = new LoaiNguoiDungDao();

            ViewBag.LoaiNguoiDungID = new SelectList(dao.toList(), "IDLOAINGUOIDUNG", "TENLOAINGUOIDUNG");
            return(View());
        }