private void ShowOutingCostByType() { Console.WriteLine("What is the event?\n" + "1. Golf\n" + "2. Bowling\n" + "3. Amusement Park\n" + "4. Concert\n"); int eventtype = int.Parse(Console.ReadLine()); EventType type; switch (eventtype) { default: case 1: type = EventType.Golf; break; case 2: type = EventType.Bowling; break; case 3: type = EventType.Amusement_Park; break; case 4: type = EventType.Concert; break; } decimal totalCost = 0; totalCost = _outingRepo.CalcOutingCost(type, _outings); Console.WriteLine($"Total cost for {type} is: {totalCost}"); }