public void CostOfEachEventType() { Console.Clear(); List <Event> events = _eventRepository.GetEventList(); HashSet <string> eventTypes = new HashSet <string>(); foreach (Event outing in events) { eventTypes.Add(outing.EventType); } foreach (string eventType in eventTypes) { Console.WriteLine($"{eventType}: ${_eventRepository.CalculateCostsByEventType(eventType)}"); } Console.WriteLine("Press any key to continue."); Console.ReadKey(); Console.Clear(); }