public IEnumerable <ShortPatientInfoViewModel> GetPatientsByEventyId(long eventId)
        {
            var filter = new EventCustomerListFilter
            {
                EventId = eventId
            };

            return(_eventCustomerReportingService.GetCustomerAppointmentList(filter.EventId, filter));
        }
        public EventCustomerBrifListModel GetList(EventCustomerListFilter filter)
        {
            var model = _eventCustomerReportingService.GetEventCustomerBriefList(filter.EventId, filter);

            if (model == null)
            {
                return(null);
            }

            var products        = _productRepository.GetAllProductsForEvent(filter.EventId);
            var shippingOptions = _shippingOptionRepository.GetAllShippingOptionsForBuyingProcess();

            var shippingOptionsToBind = new List <ShippingOption>();

            if (model.EventType == EventType.Retail)
            {
                var onlineShippingOption = _shippingOptionRepository.GetOnlineShippingOption();
                shippingOptionsToBind.Add(onlineShippingOption);

                if (shippingOptions != null && shippingOptions.Count > 0)
                {
                    shippingOptions.RemoveAll(so => so.Price == 0);
                    shippingOptionsToBind.AddRange(shippingOptions);
                }
            }
            else if (model.EventType == EventType.Corporate)
            {
                var onlineShippingOption = _shippingOptionRepository.GetOnlineShippingOption();
                shippingOptionsToBind.Add(onlineShippingOption);

                shippingOptions = _shippingOptionRepository.GetAllShippingOptionForCorporate(model.AccountId.HasValue ? model.AccountId.Value : 0);
                if (shippingOptions != null && shippingOptions.Count > 0)
                {
                    shippingOptionsToBind.AddRange(shippingOptions);
                }
            }
            model.ShippingOptions = shippingOptionsToBind;
            model.Products        = products != null?products.OrderBy(d => d.Price).ToList() : null;

            return(model);
        }