public ActionResult Request_Password_Change(String session) { Debug.WriteLine("Request change password from session " + session); NhanVienController ctr = new NhanVienController(); NhanVien obj = ctr.timkiem("", "", "","", "", "",session).FirstOrDefault(); if(obj!=null) { ViewBag.NhanVien = obj; return View(); } else { return RedirectToAction("Index","Admin"); } }
// // GET: /AdminUsers/ public ActionResult Index() { //check if (!this._nhanvien_permission.Contains("user_view")) { return this._fail_permission("user_view"); } NhanVienController ctr = new NhanVienController(); //Chọn danh sách nhân viên để hiển thị theo cookies tìm kiếm ViewBag.User_List = ctr.timkiem( timkiem_nhanvien["id"], timkiem_nhanvien["tendangnhap"], timkiem_nhanvien["tendaydu"], timkiem_nhanvien["email"], timkiem_nhanvien["active"], timkiem_nhanvien["loainhanvien_id"]); //set search cookies ViewBag.User_Search = this.timkiem_nhanvien; ViewBag.LoaiNhanVien_List = ctr._db.ds_loainhanvien.ToList(); //return View(this._db.Users.ToList()); //this._build_common_data(); ViewBag.Title += " - Management"; return View(); }