public IActionResult getMultiParamterPdf(PdfReportMultiParameter reportMultiParameter) { var res = pdfConverter.OpenPdfReportMultipleParameter(reportMultiParameter); if (res.status == "ok") { MemoryStream memStream = new MemoryStream((byte[])res.result); return(File((byte[])res.result, "application/pdf", "MultiParameter.pdf")); } return(new BadRequestObjectResult(res)); }