Exemple #1
0
        public async Task <IActionResult> DownloadProductionTicketAsync(int orderId)
        {
            var fileStream = await _documentGenerationManager.DownloadProductionTicketAsync(orderId);

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

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