常用方法
常用方法
常用方法
常用方法
public string AddConfiguration(ServerConfig config, bool isActive) { try { var repo = new RepositoryFactory().CreateConfigurationRepository(); repo.AddConfiguration(config, isActive); return("Success"); } catch (Exception ex) { //log error here return("Unable to save configuration. Please contact administrator."); } }