//Case 2 public void TotalCost() { List <Outing> outingList = new List <Outing>(); var listOfEnums = Enum.GetValues(typeof(TypeOfEvent)); foreach (TypeOfEvent eventType in listOfEnums) { outingList = _outingRepo.ListByType(eventType); Console.WriteLine($"The cost of this event was {_outingRepo.TotalCost(outingList)}"); } }