public IActionResult DownloadAnexoApi(string id) { var exame = _exameRepository.ObterPorId(id); if (string.IsNullOrEmpty(exame.Url)) { return(null); } var arraybyte = _azureStorageService.DownloadToBytes(exame.Url); if (arraybyte == null) { return(null); } return(File(arraybyte, exame.ContentType, exame.NomeArquivo)); }