public async Task <IActionResult> OnPostDownloadPDF(int id) { var bytes = await _sageService.GetPDFInvoice(SageApplicationType.DAMA_BACKOFFICE, id); return(File(bytes, "application/pdf", $"DamaNoJornal#{id}.pdf")); }
public async Task <byte[]> GetPDFInvoiceAsync(SageApplicationType applicationType, long invoiceId) { return(await _sageService.GetPDFInvoice(applicationType, invoiceId)); }