public static string GetUsername(long accountNumber) { Dictionary <long, string> tempDict = AccountManager.AccountNumberUsernameDictionary(); if (tempDict.ContainsKey(accountNumber)) { return(tempDict[accountNumber]); } return(null); }
public static Account GetAccount(long accountNumber) { if (_accountListByAccountNumber.ContainsKey(accountNumber)) { return(_accountListByAccountNumber[accountNumber]); } Dictionary <long, string> tempDict = AccountManager.AccountNumberUsernameDictionary(); if (tempDict.ContainsKey(accountNumber)) { return(GetAccount(tempDict[accountNumber], accountNumber)); } return(null); }
public static bool AccountExists(long accountNumber) { return(AccountManager.AccountNumberUsernameDictionary().ContainsKey(accountNumber)); }