Exemplo n.º 1
0
        public static string GetUsername(long accountNumber)
        {
            Dictionary <long, string> tempDict = AccountManager.AccountNumberUsernameDictionary();

            if (tempDict.ContainsKey(accountNumber))
            {
                return(tempDict[accountNumber]);
            }
            return(null);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public static bool AccountExists(long accountNumber)
 {
     return(AccountManager.AccountNumberUsernameDictionary().ContainsKey(accountNumber));
 }