Ejemplo n.º 1
0
        public async Task <IActionResult> DownloadCertificateAsync(int invoiceId)
        {
            var fileStream = await _documentGenerationManager.DownloadCertificateForDepositInvoiceAsync(invoiceId);

            var file = new FileStreamResult(fileStream, "application/pdf");

            file.FileDownloadName = fileStream.Name;
            return(file);
        }