Exemplo n.º 1
0
        //Display Cost by Type
        private void DisplayOutingCostByType()
        {
            Console.Clear();
            Console.WriteLine("Please enter the type of outing you would like to see the total cost for: \n" +
                              "1. Golf\n" +
                              "2. Bowling\n" +
                              "3. Amusement Park\n" +
                              "4. Concert");
            int outingType = int.Parse(Console.ReadLine());

            if (outingType == 1)
            {
                Console.WriteLine("All golf outings for the year were: ");

                Console.WriteLine(_outingsRepository.GetTypeTotalCost(outingType));
            }
            else if (outingType == 2)
            {
                Console.WriteLine("All bowling outings for the year were: ");
                Console.WriteLine(_outingsRepository.GetTypeTotalCost(outingType));
            }
            else if (outingType == 3)
            {
                Console.WriteLine("All amusement park outings for the year were: ");
                Console.WriteLine(_outingsRepository.GetTypeTotalCost(outingType));
            }
            else if (outingType == 4)
            {
                Console.WriteLine("All concert outings for the year were: ");
                Console.WriteLine(_outingsRepository.GetTypeTotalCost(outingType));
            }
            else
            {
                Console.WriteLine("Please choose a correct outing type.");
            }
        }