public void SeeTotalCostByType() { decimal typeTotal = 0; Console.WriteLine("Enter information:" + "\n1. Golf" + "\n2. Bowling" + "\n3. Amusement Park" + "\n4. Concert" + "\n5. Other"); int input = int.Parse(Console.ReadLine()); switch (input) { case 1: typeTotal = _outingRepo.CalculateTotalCostByType(OutingType.Golf); break; case 2: typeTotal = _outingRepo.CalculateTotalCostByType(OutingType.Bowling); break; case 3: typeTotal = _outingRepo.CalculateTotalCostByType(OutingType.AmusementPark); break; case 4: typeTotal = _outingRepo.CalculateTotalCostByType(OutingType.Concert); break; case 5: typeTotal = _outingRepo.CalculateTotalCostByType(OutingType.Other); break; default: Console.WriteLine("Invalid response."); Console.ReadLine(); break; } Console.WriteLine($"This is total cost for event type{typeTotal}"); Console.ReadLine(); }