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 })); }
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 })); }
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(""); }
public void CreateDiaChi(string tendangnhap, string diachi, string tinhthanh) { DiaChiBUS diachibus = new DiaChiBUS(); diachibus.CreateDiaChi(tendangnhap, diachi, tinhthanh); }