/// <summary>
        /// Gets the list of qualifiers for an event.
        /// </summary>
        /// <param name="eventId">The event Id.</param>
        /// <returns></returns>
        public static List <ServiceProvider.EventSvc.EventQualifier_V01> GetEventQualifierList(int eventId)
        {
            if (eventId <= 0)
            {
                return(null);
            }

            var memberCacheKey     = string.Format("MemberList_Event{0}", eventId);
            var eventQualifierList = HttpRuntime.Cache[memberCacheKey] as List <ServiceProvider.EventSvc.EventQualifier_V01>;

            if (eventQualifierList == null || !eventQualifierList.Any())
            {
                eventQualifierList = new List <ServiceProvider.EventSvc.EventQualifier_V01>();
                using (var proxy = ServiceClientProvider.GetEventServiceProxy())
                {
                    try
                    {
                        var request    = new ServiceProvider.EventSvc.GetEventQualifierListRequest();
                        var requestV01 = new ServiceProvider.EventSvc.GetEventQualifierRequest_V01
                        {
                            EventID = eventId,
                            //EventIDSpecified = true
                        };
                        request.request = requestV01;
                        var response   = proxy.GetEventQualifierList(request);
                        var response01 = response.GetEventQualifierListResult as ServiceProvider.EventSvc.GetEventQualifierResponse_V01;
                        if (response01 != null && response01.EventQualifiers != null)
                        {
                            eventQualifierList = response01.EventQualifiers.ToList();
                        }
                    }
                    catch (Exception ex)
                    {
                        eventQualifierList = new List <ServiceProvider.EventSvc.EventQualifier_V01>();
                        LoggerHelper.Error(
                            string.Format("GetEventQualifierList error calling service EventId:{0} ERR:{1}",
                                          eventId, ex.ToString()));
                    }
                }

                if (eventQualifierList.Any())
                {
                    HttpRuntime.Cache.Insert(memberCacheKey, eventQualifierList, null,
                                             DateTime.Now.AddMinutes(EventCacheMinutes),
                                             Cache.NoSlidingExpiration, CacheItemPriority.NotRemovable, null);
                }
            }

            return(eventQualifierList);
        }
        //s
        /// <summary>
        /// Gets the list of qualifiers for an event.
        /// </summary>
        /// <param name="eventId">The event Id.</param>
        /// <returns></returns>
        public static List <ServiceProvider.EventSvc.EventQualifier_V01> GetDSEventQualifierList(int eventId, string distributorid)
        {
            if (eventId <= 0 && string.IsNullOrEmpty(distributorid))
            {
                return(null);
            }
            var eventQualifierList = new List <ServiceProvider.EventSvc.EventQualifier_V01>();

            using (var proxy = ServiceClientProvider.GetEventServiceProxy())
            {
                try
                {
                    var request    = new ServiceProvider.EventSvc.GetEventQualifierListRequest();
                    var requestV01 = new ServiceProvider.EventSvc.GetEventQualifierRequest_V01
                    {
                        EventID       = eventId,
                        DistributorID = distributorid
                    };
                    request.request = requestV01;
                    var response   = proxy.GetEventQualifierList(request);
                    var response01 = response.GetEventQualifierListResult as ServiceProvider.EventSvc.GetEventQualifierResponse_V01;
                    if (response01 != null && response01.EventQualifiers != null)
                    {
                        eventQualifierList = response01.EventQualifiers.ToList();
                    }
                }
                catch (Exception ex)
                {
                    eventQualifierList = new List <ServiceProvider.EventSvc.EventQualifier_V01>();
                    LoggerHelper.Error(
                        string.Format("GetEventQualifierList error calling service EventId:{0} ERR:{1}",
                                      eventId, ex.ToString()));
                }
            }
            return(eventQualifierList);
        }