public Decimal CustomerBalance(Customer customer) { if (customer.RelatedAccounts == null) { return(0); } return(customer.RelatedAccounts.Sum(x => _accountServices.Balance(x.Key))); }