/// <summary>
        /// Writes the EForm to the Response
        /// </summary>
        private void WriteEForm()
        {
            Response.Clear();
            Eform eform = ObjectSerializer.InstanceFromJSON <Eform>(JSONEForm);

            if (OutputType == OUTPUT_JSON)
            {
                WriteJSON(eform);
            }
            else if (OutputType == OUTPUT_XML)
            {
                WriteXML(eform);
            }

            Response.End();
        }
Beispiel #2
0
        /// <summary>
        /// Returns an Eform object from its JSON representation
        /// </summary>
        /// <param name="JSON">the json string representation of an EForm</param>
        /// <returns></returns>
        private Eform GetEformObject(string JSON)
        {
            Eform eform = ObjectSerializer.InstanceFromJSON <Eform>(JSON);

            return(eform);
        }