//public decimal EventCostsList(KomodoOutings outing) //{ // decimal total = 0m; // switch (outing.EventType) // { // case EventType.Golf: // total += outing.CostForEvent + outing.CostPerPerson * outing.PeopleAttended; // break; // case EventType.Bowling: // total += outing.CostForEvent + outing.CostPerPerson * outing.PeopleAttended; // break; // case EventType.AmusementPark: // total += outing.CostForEvent + outing.CostPerPerson * outing.PeopleAttended; // break; // case EventType.Concert: // total += outing.CostForEvent + outing.CostPerPerson * outing.PeopleAttended; // break; // default: // break; // } // return total; //} public void EventCost(KomodoOutings outing) { outing.TotalCostForEvent = outing.CostForEvent + outing.CostPerPerson * outing.PeopleAttended; }
public void AddToEventList(KomodoOutings outings) { _listOfEvents.Add(outings); }