public async Task <IActionResult> Index() { return(await RunThrottledAsync(() => { var reportBytes = InMemoryPdfReport.CreateInMemoryPdfReport(_hostingEnvironment.WebRootPath); return File(reportBytes, "application/pdf", "report.pdf"); })); }
public IActionResult Index() { var reportBytes = InMemoryPdfReport.CreateInMemoryPdfReport(_hostingEnvironment.WebRootPath); return(File(reportBytes, "application/pdf", "report.pdf")); }