Esempio n. 1
0
        public ActionResult PostInterviewProcessing()
        {
            var encodedAnswers = InterviewResponse.GetAnswers(Request.Form);

            AssembleDocument(encodedAnswers);
            return(null);
        }
Esempio n. 2
0
        public ActionResult PostInterviewProcessing()
        {
            //Retrieve encoded answers
            var encodedAnswers = InterviewResponse.GetAnswers(Request.Form);

            //If you need to parse new answers out of result but not roundtripped ones then
            var newAnswers         = InterviewAnswerSet.GetDecodedInterviewAnswers(new StringReader(encodedAnswers));
            var newAnswersAsString = newAnswers.ReadToEnd();

            //If you need all answers including roundtripped
            var service    = CreateHotDocsService();
            var allAnswers = service.GetAnswers(new[] { new StringReader(encodedAnswers) }, "logref");

            //If no need to use answers outside of assembly then just assemble using encoded ones
            AssembleDocument(encodedAnswers);

            return(null);
        }