public ListPriceRecord[] ShowPrices(EventCriteria criteria)
 {
     var events = this.FindEventsByCrireria(criteria);
     return events.Select(ev => CreateListPriceRecord(ev)).ToArray();
 }
        public Event[] FindEventsByCrireria(EventCriteria criteria)
        {
            var result = eventManager.FindEvents(criteria);

            //Clear the loop reference between show and event to solve serialization issues.
            //DataContract serialization does support loop reference but there is no business need to use it here.
            foreach (Event item in result)
            {
                item.ShowDetails.Events = null;
            }
            return result;
        }