public static bool CapNhatID(string pUserID, int pSystemID, string pSessionID) { try { Users_System user = new Users_System(); user.SystemID = pSystemID; user.UserID = pUserID; user.SessionID = pSessionID; db.SubmitChanges(); return(true); } catch (Exception) { throw; } }
public static bool Actived(string pUserID, int pSystemID, string pSessionID) { try { string HashSessionID = CalculateMD5Hash(pSessionID); Users_System system = User_SystemDAO.KiemTraUSer(pUserID, pSystemID, HashSessionID); if (system != null) { User_SystemDAO.CapNhatID(pUserID, pSystemID, pSessionID); return(true); } else { return(false); } } catch (Exception) { throw; } }