public int CapNhat(
            string maTaiKhoan,
            string tenDangNhap,
            string email,
            string quyenHan)
        {
            int rs = new TaiKhoanDangNhapModel(
                int.Parse(maTaiKhoan), tenDangNhap, "", quyenHan, "", email
                ).CapNhat();

            return(rs);
        }
Esempio n. 2
0
        public ActionResult KiemTraDangNhap(string tenDangNhap, string matKhau)
        {
            string a        = new Command.Command().MaHoaChuoi(matKhau);
            var    taiKhoan = new TaiKhoanDangNhapModel(tenDangNhap, new Command.Command().MaHoaChuoi(matKhau)).DangNhap();

            if (taiKhoan.Count > 0)
            {
                Contains.TAIKHOANDANGNHAP            = taiKhoan[0];
                Session[Contains.SESSIONKEYDANGNHAP] = taiKhoan[0];
                return(RedirectToAction("Index", "XinChao", new { area = "Admin" }));
            }
            else
            {
                ViewData["LoiDangNhap"] = "Đăng nhập thất bại.";
                return(View("index"));
            }
        }
 // GET: Admin/QuanLyTaiKhoan
 public ActionResult Index()
 {
     ViewData["DSTaiKhoan"] = new TaiKhoanDangNhapModel().DanhSach();
     return(View());
 }