public CustomerLabelListModel GetCustomerLabels(long eventId, int shippingStatus) { var eventCustomers = _eventCustomerRepository.GetEventCustomersForShippingLabels(eventId, shippingStatus); if (eventCustomers.IsNullOrEmpty()) { return(null); } var customers = _customerRepository.GetCustomers(eventCustomers.Select(ec => ec.CustomerId).ToArray()); return(new CustomerLabelListModel() { CustomerLabelBasicModels = customers.Select(c => new CustomerLabelBasicModel() { Name = c.Name, Address = c.Address }) }); }