Example #1
0
        /// <summary>
        /// Serializes value and saves it into config table
        /// </summary>
        /// <param name="key"></param>
        /// <param name="data"></param>
        public static void Save(string key, object data)
        {
            ObjectSerializer serializer = new ObjectSerializer(true);
            var buffer = serializer.Serialize(data);

            ClientDataAccess.InsertConfigValue(key, buffer);
        }