public ActionResult LuuThongTinFacebook(KhachHangViewModel model) { KhachHangViewModel khachHang = (KhachHangViewModel)Session[Constants.Constants.LOGIN_KHACHHANG]; if (ModelState.IsValid) { khachHang.TenKH = model.TenKH; khachHang.SoDT = model.SoDT; khachHang.DiaChi = model.DiaChi; if (!KhachHangQueries.KiemTraTaiKhoanFacebook(khachHang.MaKH)) { KhachHangQueries.DangKyBangFacebook(khachHang); } else { KhachHangQueries.SuaThongTinKhachHang(khachHang); } Session[Constants.Constants.LOGIN_KHACHHANG] = khachHang; } return(RedirectToAction("GioHang", "GioHang")); }