public ActionResult ViewDocument(string FileDescription, string FileType, string FileLocationURL)
        {
            DocumentToViewModel docView = new DocumentToViewModel();

            docView.FileDescription = FileDescription;
            docView.FileType        = FileType;
            docView.FileLocationURL = Decrypt(FileLocationURL);
            docView.isValid         = true;
            string url = Request.Url.ToString();

            String[] fullDocName = docView.FileLocationURL.Replace('\\', '/').Split('/');

            docView.FileName = fullDocName[fullDocName.Length - 1];

            return(View(docView));
        }
        public object GetRequestData()
        {
            DocumentToViewModel docView = new DocumentToViewModel();
            string url = Request.UrlReferrer.AbsoluteUri;

            if (!url.Contains("?"))
            {
                docView.isValid = false;
                return(docView);
            }
            string[]            separateURL = url.Split('?');
            NameValueCollection queryString = System.Web.HttpUtility.ParseQueryString(separateURL[1]);

            if (queryString["FileDescription"] != null && queryString["FileLocationURL"] != null && queryString["FileType"] != null)
            {
                docView.FileDescription = queryString["FileDescription"].ToString();
                docView.FileLocationURL = Decrypt(queryString["FileLocationURL"].ToString());
                docView.FileType        = queryString["FileType"].ToString();
                docView.isValid         = true;
            }
            return(Newtonsoft.Json.JsonConvert.SerializeObject(docView));
        }