public async Task <ActionResult> ExportAs([FromRoute] string clienteId, [FromQuery] string format) { FileContentResult _file = null; try { ArchivoReporte workbook = await ventaService.ExportarAsync(clienteId); _file = File(workbook.ArchivoByte, workbook.ContentType, workbook.NombreArchivo); } catch (Exception ex) { _logger.LogError(ex); } return(_file); }