public override void SyncUpdate()
        {
            AsyncBitcoinAverageBtcRateScheduleService.SetStatus("Вызов scoped сервиса для записи данных в БД");
            lock (AsyncBitcoinAverageBtcRateScheduleService.RatesBTC)
            {
                foreach (BitcoinAverageConvertModel btcRate in AsyncBitcoinAverageBtcRateScheduleService.RatesBTC.OrderBy(x => DateTime.Parse(x.time)))
                {
                    double CurrentBtcRate = Math.Round(1 / btcRate.price * (double)AsyncBitcoinAverageBtcRateScheduleService.SumFilter, 2);
                    BtcRateLocalbitcoinsModel btcRateObj = new BtcRateLocalbitcoinsModel()
                    {
                        CountRates  = 1,
                        MaxRate     = CurrentBtcRate,
                        MinRate     = CurrentBtcRate,
                        Information = "load from BitcoinAverageConvert [success: " + btcRate.success + "] [time:" + btcRate.time + "]"
                    };

                    db.Add(btcRateObj);
                    db.SaveChanges();
                    AsyncBitcoinAverageBtcRateScheduleService.SetStatus("Загружается снимок состояния: " + btcRate.ToString());
                }
                AsyncBitcoinAverageBtcRateScheduleService.RatesBTC.Clear();
            }

            AsyncBitcoinAverageBtcRateScheduleService.SetStatus(null);
        }
        public override void SyncUpdate()
        {
            AsyncCoinGeckoBtcRateScheduleService.SetStatus("Вызов scoped сервиса для записи данных в БД");
            lock (AsyncCoinGeckoBtcRateScheduleService.RatesBTC)
            {
                foreach (CoinGeckoSimplePriceModel btcRate in AsyncCoinGeckoBtcRateScheduleService.RatesBTC.OrderBy(x => x.time))
                {
                    BtcRateLocalbitcoinsModel btcRateObj = new BtcRateLocalbitcoinsModel()
                    {
                        CountRates  = 1,
                        MaxRate     = btcRate.bitcoin.rub,
                        MinRate     = btcRate.bitcoin.rub,
                        Information = "load from CoinGecko"
                    };

                    db.Add(btcRateObj);
                    db.SaveChanges();
                    AsyncCoinGeckoBtcRateScheduleService.SetStatus("Загружается снимок состояния: " + btcRate.ToString());
                }
                AsyncCoinGeckoBtcRateScheduleService.RatesBTC.Clear();
            }

            AsyncCoinGeckoBtcRateScheduleService.SetStatus(null);
        }