Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult DownloadPDF(int id)
- {
- byte[] pdffile = [your file];
- return File(pdffile, "application/pdf");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement