Exemplo n.º 1
0
        public async Task <ActionResult> ExportAs([FromRoute] string clienteId, [FromRoute] string format)
        {
            FileContentResult _file = null;

            try
            {
                ArchivoReporte workbook = await testdriveService.ExportarAsync(clienteId);

                _file = File(workbook.ArchivoByte, workbook.ContentType, workbook.NombreArchivo);
            }
            catch (Exception ex)
            {
                _logger.LogError(ex);
            }
            return(_file);
        }