/// <summary>
 /// 新增设置
 /// </summary>
 /// <param name="setting">设置</param>
 /// <returns></returns>
 public ActionResult AddSetting(SystemSettings setting)
 {
     try
     {
         setting.SettingId = Guid.NewGuid();
         var count = _systemSettingHelper.Insert(setting);
         if (count == 1)
         {
             _applicationSettingService.SetSettingValue(setting.SettingName, setting.SettingValue);
             OperLogHelper.AddOperLog($"新增系统设置 {setting.SettingName}:{setting.SettingValue}",
                                      OperLogModule.Settings, UserName);
             return(Json(true));
         }
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
     }
     return(Json(false));
 }