Exemple #1
0
        public double checkLoanBalance(int accountHolderId)
        {
            double balance = 0;

            Loan activeLoan = _loanRepository.FindActiveLoanById(accountHolderId);

            if (activeLoan != null)
            {
                balance = activeLoan.AmountLeft;
            }

            return(balance);
        }