public FileContentResult GetInOutInspectionReport(int InspectionID) { PDFManager pdfManager = new PDFManager(Server); InOutInspectionPDF inspectionPdf = new InOutInspectionPDF(pdfManager); inspectionPdf.GeneratePDF(InspectionID); // return the actual PDF string fileName = "test.pdf"; FileContentResult reportResult = GetFileContent(fileName); return reportResult; }
public InOutInspectionPDF(PDFManager manager) { p = manager; }