public IActionResult DownloadDadosProduto(string codigo) { try { var arquivo = _produtoAppService.DownloadDadosVenda(codigo); return(new FileContentResult(arquivo?.Arquivo, arquivo?.ContentType) { FileDownloadName = arquivo?.NomeArquivo }); } catch (Exception ex) { _logger.LogError(ex, "Erro ao tentar criar arquivo de download do produto"); return(View()); } }