Ejemplo n.º 1
0
 public async Task <IRemoteStreamContent> GetFileAsync(string name)
 {
     return(await _fileAppService.GetFileAsync(name));
 }
Ejemplo n.º 2
0
        public async Task <IActionResult> DownloadAsync(string fileName)
        {
            var fileDto = await _fileAppService.GetFileAsync(new GetFileRequestDto { Name = fileName });

            return(File(fileDto.Content, "application/octet-stream", fileDto.Name));
        }