コード例 #1
0
ファイル: User_SystemDAO.cs プロジェクト: GAlexycsu/PDN_ALEX
 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;
     }
 }
コード例 #2
0
ファイル: User_SystemBUS.cs プロジェクト: GAlexycsu/PDN_ALEX
 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;
     }
 }