Exemplo n.º 1
0
        public void OnGet(string id)
        {
            RequestInfo = RequestStorage.FindById(id);
            var downloadName = RequestInfo.Name.Replace(" ", "_") + "-levepo-terms.pdf";

            TempData["Embed"] = "<object id=\"pdf\" type=\"application/pdf\" data=\"data:application/pdf;base64,"
                                + RequestInfo.Documents.First().Data
                                + "\" width=\"100%\" height=\"100%\">alt : <a href=\"" + downloadName + "\">test.pdf</a></object>";
        }
Exemplo n.º 2
0
        public ActionResult GetById(string id)
        {
            var request = RequestStorage.FindById(id);

            return(Json(request));
        }