Ejemplo n.º 1
0
 public ActionResult RenderPages(int schemeId)
 {
     //command to trigger rendering of pages
     //& create the .cshtml files to be inserted into DynamicViewsFolder (web.config setting)
     //will use the razor view engine to generate the .cshtml files (out putting razor content)
     QuestionnaireRendering.RenderPagesForScheme(schemeId);
     return(RedirectToAction("Scheme", "Schemes", new { schemeId = schemeId, selectedTab = SchemePageTabs.RenderedPages }));
 }
Ejemplo n.º 2
0
 public ActionResult RenderQuestionTemplate(int questionTemplateId)
 {
     QuestionnaireRendering.RenderQuestionTemplate(questionTemplateId);
     return(RedirectToAction("ListQuestionTemplates"));
 }