public async Task <List <Consumer> > GetAffectedConsumersFromDatabase(List <long> affectedConsumersIds)
        {
            var consumerAccessClient = ConsumerAccessClient.CreateClient();
            var affectedConsumers    = new List <Consumer>();

            foreach (long affectedConsumerId in affectedConsumersIds)
            {
                var affectedConsumer = await consumerAccessClient.GetConsumer(affectedConsumerId);

                if (affectedConsumer == null)
                {
                    break;
                }

                affectedConsumers.Add(affectedConsumer);
            }

            return(affectedConsumers);
        }
        private List <Consumer> GetAffectedConsumersFromDatabase(List <long> affectedConsumersIds)
        {
            var             consumerAccessClient = ConsumerAccessClient.CreateClient();
            List <Consumer> affectedConsumers    = new List <Consumer>();

            foreach (long affectedConsumerId in affectedConsumersIds)
            {
                Consumer affectedConsumer = consumerAccessClient.GetConsumer(affectedConsumerId).Result;

                if (affectedConsumer == null)
                {
                    break;
                }

                affectedConsumers.Add(affectedConsumer);
            }

            return(affectedConsumers);
        }