Ejemplo n.º 1
0
        public string CalculationsOutingsConcerts()
        {
            double         total     = 0;
            OutingsContent outingObj = new OutingsContent();

            foreach (var outing in _outingsList)
            {
                if (outing.EventType == EventType.Concert)
                {
                    total += outing.TotalCostEvent;
                }
            }
            return(total.ToString());
        }
Ejemplo n.º 2
0
 public void AddOutings(OutingsContent newOutings)
 {
     _outingsList.Add(newOutings);
 }