public void Execute()
        {
            List <Provider> providers = GetAllProviders();

            foreach (var provider in providers.Where(provider => provider.Id == 2180))   // TODO: убрать перед использованием
            {
                ProviderCancellationRulePriorityUpdater providerCancellationRulePriorityUpdater =
                    new ProviderCancellationRulePriorityUpdater(provider, _connectionString, _logger);
                providerCancellationRulePriorityUpdater.Execute();
            }
        }
        public void Execute()
        {
            List <Provider> providers = GetAllProviders();
            string          specificProvidersSetting = ConfigurationManager.AppSettings["SpecificProviders"];

            if (!String.IsNullOrEmpty(specificProvidersSetting))
            {
                IEnumerable <int> specificProviders = specificProvidersSetting.Split(',').Select(Int32.Parse);
                providers = providers.FindAll(provider => specificProviders.Contains(provider.Id));
            }
            foreach (var provider in providers)
            {
                try
                {
                    ProviderCancellationRulePriorityUpdater providerCancellationRulePriorityUpdater =
                        new ProviderCancellationRulePriorityUpdater(provider, _connectionString, _logger);
                    providerCancellationRulePriorityUpdater.Execute();
                }
                catch (Exception e)
                {
                    _logger.Error(e.Message);
                }
            }
        }