private Account GetAccount(string email) { lock (synlock1) { var db = new AccountDAOSQL(); return(db.GetAccount(email)); } }
private Account GetAccount(string email, string password) { lock (syncLock) { IAccountDAO db = new AccountDAOSQL(); Account account = db.GetAccount(email, password); return(account); } }
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); } } }