protected virtual Account[] GetCustomerAccounts()
 {
     if (Customer != null)
     {
         return(_accountService.GetCustomerAccounts(Customer));
     }
     return(new Account[0]);
 }
Example #2
0
        public virtual Account[] GetCustomerAccounts()
        {
            Guard.ArgumentNotNull(_queueEntry.Person, "Person");
            Customer customer = _queueEntry.Person as Customer;

            Guard.ArgumentNotNull(customer, "Person");


            Account[] accounts = _customerAccountsService.GetCustomerAccounts(customer);

            List <Account> result = new List <Account>();

            foreach (Account account in accounts)
            {
                if (account.AccountType != AccountType.CD)
                {
                    result.Add(account);
                }
            }

            return(result.ToArray());
        }