예제 #1
0
        private void Calculation()
        {
            Console.WriteLine("Would you like to calculate: \n" +
                              "1. Total Outing Cost \n" +
                              "2. Total Cost per Event");
            int input = int.Parse(Console.ReadLine());

            switch (input)
            {
            case 1:
                Console.WriteLine($"Total Outing Cost: {_outingRepo.AddTotalCostOfOutings()}");
                break;

            case 2:
                Console.WriteLine($"Total Cost per Event:\n" +
                                  $"Bowling: ${_outingRepo.AddTotalCostBowling()}\n" +
                                  $"Golf: ${_outingRepo.AddTotalCostGolf()}\n" +
                                  $"Concert: ${_outingRepo.AddTotalCostConcert()}\n" +
                                  $"Park: ${_outingRepo.AddTotalCostPark()}\n");
                break;

            default:
                Console.WriteLine("That wasn't an option");
                break;
            }
        }