public void InsertUpdatePeriodRule(ConfigModel.PeriodRule periodRule)
        {
            var OldRuleIndex = _config.Period.FindIndex(c => c.PeriodName == periodRule.PeriodName);

            if (OldRuleIndex > -1)
            {
                _config.Period[OldRuleIndex] = periodRule;
            }
            else
            {
                _config.Period.Add(periodRule);
            }
            UpdateJsonConfigData(_config);
            RefreshConfigData();
        }
 public void InsertUpdatePeriodRule(ConfigModel.PeriodRule periodRule)
 {
     _config.InsertUpdatePeriodRule(periodRule);
 }
 public void InsertUpdatePeriodRule(ConfigModel.PeriodRule periodRule)
 {
     throw new NotImplementedException();
 }