Ejemplo n.º 1
0
        public IActionResult CreateDiaChi(string item_them_tendangnhap, string item_them_duong, string item_them_tinhthanh)
        {
            DiaChiBUS diachi   = new DiaChiBUS();
            string    thongbao = diachi.CreateDiaChi(item_them_tendangnhap, item_them_duong, item_them_tinhthanh);

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

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

            if (checktendangnhap != null && checktendangnhap != "")
            {
                DiaChiBUS diachibus = new DiaChiBUS();
                string    thongbao  = diachibus.CreateDiaChi(tendangnhap, diachi, tinhthanh);
                return(thongbao);
            }
            return("");
        }
Ejemplo n.º 4
0
        public void CreateDiaChi(string tendangnhap, string diachi, string tinhthanh)
        {
            DiaChiBUS diachibus = new DiaChiBUS();

            diachibus.CreateDiaChi(tendangnhap, diachi, tinhthanh);
        }