private Account GetAccount(string email)
 {
     lock (synlock1)
     {
         var db = new AccountDAOSQL();
         return(db.GetAccount(email));
     }
 }
Example #2
0
 private Account GetAccount(string email, string password)
 {
     lock (syncLock)
     {
         IAccountDAO db      = new AccountDAOSQL();
         Account     account = db.GetAccount(email, password);
         return(account);
     }
 }
Example #3
0
 private static bool IsAccountExist(string email)
 {
     lock (syncLock)
     {
         try
         {
             IAccountDAO db      = new AccountDAOSQL();
             var         account = db.GetAccount(email);
             if (account.Email == email)
             {
                 return(false);
             }
             return(true);
         }
         catch (Exception ex)
         {
             throw new Exception(ex.Message);
         }
     }
 }