public static Account CreateAccount(string email, string password, Account.UserLevels userLevel = Account.UserLevels.User) { var account = new Account(email, password, userLevel); Accounts.Add(email, account); account.SaveToDB(); return account; }
public static Account CreateAccount(string email, string password) { var account = new Account(email, password); Accounts.Add(email, account); account.SaveToDB(); return account; }
public static Account CreateAccount(string email, string password, string battleTag, Account.UserLevels userLevel = Account.UserLevels.User) { var hashCode = AccountManager.GetUnusedHashCodeForBattleTag(battleTag); var account = new Account(email, password, battleTag, hashCode, userLevel); Accounts.Add(email, account); account.SaveToDB(); return account; }
public static Account CreateAccount(string email, string password, Account.UserLevels userLevel = Account.UserLevels.User) { var account = new Account(email, password, userLevel); Accounts.Add(email, account); account.SaveToDB(); return(account); }
public static Account CreateAccount(string email, string password, string battleTag, Account.UserLevels userLevel = Account.UserLevels.User) { var hashCode = AccountManager.GetUnusedHashCodeForBattleTag(battleTag); var account = new Account(email, password, battleTag, hashCode, userLevel); Accounts.Add(email, account); account.SaveToDB(); return(account); }
public static Account GetAccountByEmail(string email) { Account account; if (Accounts.ContainsKey(email)) account = Accounts[email]; else { account = new Account(email); Accounts.Add(email, account); account.SaveToDB(); } return account; }