Example #1
0
        public static void IncreaseRates(LoanPortfolio portfolio)
        {
            Console.Write("Rate increase (%): ");
            decimal rateIncrease = decimal.Parse(Console.ReadLine());

            portfolio.PortfolioAction((l) => l.Rate += (rateIncrease / 100));
        }
Example #2
0
        public static void PayoffAllLoans(LoanPortfolio portfolio)
        {
            Console.Write("This action will payoff all loans are you sure? ");

            string ans = Console.ReadLine();

            if (ans.ToLower() == "y")
            {
                portfolio.PortfolioAction((l) => l.MakePayment(l.Balance));
            }
        }