public IEnumerable <IBankAccount> GetBankAccountList(long BankAccountK) { IEnumerable <IBankAccount> list; if (bankAccounts == null) { return(null); } lock (BankAccounts) { list = BankAccounts.Where(i => i.BankAccountK == BankAccountK); } return(list); }