public IActionResult EditDiaChi(string item_sua_id, string item_sua_duong, string item_sua_tinhthanh) { DiaChiBUS diachi = new DiaChiBUS(); string thongbao = diachi.EditDiaChi(item_sua_id, item_sua_duong, item_sua_tinhthanh); return(RedirectToAction("Index", "DiaChi", new { thongbao = thongbao })); }
public IActionResult EditDiaChi(string id, string diachi, string tinhthanh) { DiaChiBUS dcbus = new DiaChiBUS(); string thongbao = dcbus.EditDiaChi(id, diachi, tinhthanh); return(RedirectToAction("Index", "TaiKhoan", new { thongbao = thongbao })); }
public string SuaDiaChi(string id, string diachi, string tinhthanh) { string checktendangnhap = HttpContext.Session.GetString("TenDangNhap"); if (checktendangnhap != null && checktendangnhap != "") { DiaChiBUS diachibus = new DiaChiBUS(); string thongbao = diachibus.EditDiaChi(id, diachi, tinhthanh); return(thongbao); } return(""); }