コード例 #1
0
        public ActionResult Index()
        {
            // Create a ViewingSession based on the document defined in the query parameter
            // Example: ?document=sample.doc
            var viewingSessionId = Request.QueryString["viewingSessionId"];

            var documentQueryParameter = Request.QueryString["document"];

            ViewBag.OriginalDocumentName = documentQueryParameter;

            if (string.IsNullOrEmpty(viewingSessionId))
            {
                ViewBag.ViewingSessionId = PrizmApplicationServices.CreateSessionFromDocument(documentQueryParameter);
            }
            else
            {
                ViewBag.ViewingSessionId = viewingSessionId;
            }

            ViewBag.TemplateJson        = GetTemplatesJson(_templateFolderPath);
            ViewBag.SearchJson          = GetConfigFileJson(_searchConfigPath);
            ViewBag.LanguageJson        = GetConfigFileJson(_languageConfigPath);
            ViewBag.RedactionReasonJson = GetConfigFileJson(_redactionReasonsConfigPath);

            return(View());
        }
コード例 #2
0
 public void Index(string path)
 {
     PrizmApplicationServices.ForwardRequest(System.Web.HttpContext.Current, path);
 }