public class FileUploadController : Controller { // // GET: /FileUpload/ public ActionResult File() { return View(); } [HttpGet] [Actionname("File")] public FileResult File() { return new FilePathResult("~/Files/Document.pdf", "Application.pdf"); }
[HttpGet, [ActionName("File")] public FileResult FileGet() { return new FilePathResult("~/Files/Document.pdf", "Application.pdf"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)