Пример #1
0
        public List <GlAccountManagement> GetAllAssetAccounts()
        {
            var assetAccounts = _glAccount.GetMainAccountCat("Asset").ToList();
            var loanAssetAcct = new GlAccountManagement
            {
                Name = "Loan Accounts"
            };
            var loanAccounts = _customerAccount.GetLoanAccounts();

            foreach (var account in loanAccounts)
            {
                loanAssetAcct.AccountBalance += account.Balance;
            }

            assetAccounts.Add(loanAssetAcct);
            return(assetAccounts);
        }