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>"; }
public ActionResult GetById(string id) { var request = RequestStorage.FindById(id); return(Json(request)); }