public string EditPassword(string tendangnhap, string matkhau)
        {
            TaiKhoanBUS taikhoanbus = new TaiKhoanBUS();
            string      thongbao    = taikhoanbus.EditTaiKhoan(tendangnhap, matkhau, null, null, null, null, null);

            return(thongbao);
        }
        public IActionResult EditTaiKhoan(string tendangnhap, string ten, string tenshop, string cmnd, string email, string dienthoai)
        {
            TaiKhoanBUS taikhoanbus = new TaiKhoanBUS();
            string      thongbao    = taikhoanbus.EditTaiKhoan(tendangnhap, null, ten, tenshop, email, dienthoai, cmnd);

            return(RedirectToAction("Index", "QuanLy", new { thongbao = thongbao }));
        }
        public string EditThongTin(string tendangnhap, string sdt)
        {
            TaiKhoanBUS taikhoanbus = new TaiKhoanBUS();
            string      thongbao    = taikhoanbus.EditTaiKhoan(tendangnhap, null, null, null, null, sdt, null);

            return(thongbao);
        }
        public IActionResult EditTaiKhoan(string item_sua_tendangnhap, string item_sua_matkhau, string item_sua_ten, string item_sua_tenshop, string item_sua_email, string item_sua_dienthoai, string item_sua_cmnd)
        {
            TaiKhoanBUS taikhoan = new TaiKhoanBUS();
            string      thongbao = taikhoan.EditTaiKhoan(item_sua_tendangnhap, item_sua_matkhau, item_sua_ten, item_sua_tenshop, item_sua_email, item_sua_dienthoai, item_sua_cmnd);

            return(RedirectToAction("Index", "TaiKhoan", new { thongbao = thongbao }));
        }
Example #5
0
        public IActionResult EditTaiKhoan(string tendangnhap, string ten, string email, string dienthoai)
        {
            string checktendangnhap = HttpContext.Session.GetString("TenDangNhap");

            if (checktendangnhap != null && checktendangnhap != "")
            {
                TaiKhoanBUS taikhoanbus = new TaiKhoanBUS();
                string      thongbao    = taikhoanbus.EditTaiKhoan(tendangnhap, null, ten, null, email, dienthoai, null);
                return(RedirectToAction("Index", "Home", new { thongbao = thongbao }));
            }
            return(RedirectToAction("Index", "Home"));
        }
Example #6
0
        public string EditThongTin(string tendangnhap, string email, string sdt)
        {
            string checktendangnhap = HttpContext.Session.GetString("TenDangNhap");

            if (checktendangnhap != null && checktendangnhap != "")
            {
                TaiKhoanBUS taikhoanbus = new TaiKhoanBUS();
                string      thongbao    = taikhoanbus.EditTaiKhoan(tendangnhap, null, null, null, email, sdt, null);
                return(thongbao);
            }
            return("");
        }
        public string SuaPassword(string tendangnhap, string matkhaucu, string matkhaumoi)
        {
            TaiKhoanBUS taikhoanbus = new TaiKhoanBUS();
            string      thongbao    = "";

            if (taikhoanbus.CheckOldPassword(tendangnhap, matkhaucu))
            {
                thongbao = taikhoanbus.EditTaiKhoan(tendangnhap, matkhaumoi, null, null, null, null, null);
            }
            else
            {
                thongbao = "Mật khẩu cũ không trùng khớp";
            }
            return(thongbao);
        }
Example #8
0
        public string EditPassword(string tendangnhap, string matkhaucu, string matkhaumoi)
        {
            string checktendangnhap = HttpContext.Session.GetString("TenDangNhap");

            if (checktendangnhap != null && checktendangnhap != "")
            {
                TaiKhoanBUS taikhoanbus = new TaiKhoanBUS();
                string      thongbao    = "";
                if (taikhoanbus.CheckOldPassword(tendangnhap, matkhaucu))
                {
                    thongbao = taikhoanbus.EditTaiKhoan(tendangnhap, matkhaumoi, null, null, null, null, null);
                }
                else
                {
                    thongbao = "Mật khẩu cũ không trùng khớp";
                }
                return(thongbao);
            }
            return("");
        }