public static void WriteSettings(string affiliateApplication, Hashtable ht)
        {
            settings inSettings = new settings();

            foreach (object key in ht.Keys)
            {
                property prop = new property();
                prop.name  = key.ToString();
                prop.Value = (string)ht[key];
                inSettings.propertyCollection.Add(prop);
            }

            StringBuilder sb         = new StringBuilder();
            StringWriter  writer     = new StringWriter(sb);
            XmlSerializer serializer = new XmlSerializer(typeof(settings));

            serializer.Serialize(writer, inSettings);

            SSOHelper.SaveConfigInfo(affiliateApplication, sb.ToString());
        }
 public static void WriteRawSettings(string affiliateApplication, string settingsXml)
 {
     SSOHelper.SaveConfigInfo(affiliateApplication, settingsXml);
 }