コード例 #1
0
        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.");
            }
        }