示例#1
0
        public async Task <IActionResult> OnPostDownloadPDF(int id)
        {
            var bytes = await _sageService.GetPDFInvoice(SageApplicationType.DAMA_BACKOFFICE, id);

            return(File(bytes, "application/pdf",
                        $"DamaNoJornal#{id}.pdf"));
        }
示例#2
0
 public async Task <byte[]> GetPDFInvoiceAsync(SageApplicationType applicationType, long invoiceId)
 {
     return(await _sageService.GetPDFInvoice(applicationType, invoiceId));
 }