public static bool EditConfig(Config config) { bool result = false; try { if (config != null) { ConfigRepository configRepository = new ConfigRepository(); result = configRepository.UpdateEntitySave(config); } } catch (Exception e) { LogService.Log("编辑配置信息失败", e.ToString()); } return result; }