Пример #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));
 }