// GET: Report public IActionResult Index() { var viewModel = new TestPdfReportViewModel(BuildTestData()); return(File(pdfConverter.ConvertToPdfReport(RenderHtmlReport(viewModel, TEST_REPORT_TEMPLATE)), "application/pdf", "report.pdf")); }