Ejemplo n.º 1
0
        public IActionResult LockDiaChi(string iddiachi)
        {
            DiaChiBUS diachi   = new DiaChiBUS();
            string    thongbao = diachi.LockDiaChi(iddiachi);

            return(RedirectToAction("Index", "DiaChi", new { thongbao = thongbao }));
        }
Ejemplo n.º 2
0
        public IActionResult LockDiaChi(string id)
        {
            DiaChiBUS dcbus    = new DiaChiBUS();
            string    thongbao = dcbus.LockDiaChi(id);

            return(RedirectToAction("Index", "TaiKhoan", new { thongbao = thongbao }));
        }
Ejemplo n.º 3
0
        public string KhoaDiaChi(string id)
        {
            string checktendangnhap = HttpContext.Session.GetString("TenDangNhap");

            if (checktendangnhap != null && checktendangnhap != "")
            {
                DiaChiBUS diachibus = new DiaChiBUS();
                string    thongbao  = diachibus.LockDiaChi(id);
                thongbao = "Xoá thành công";
                return(thongbao);
            }
            return("");
        }