public async Task <IActionResult> DownloadAsync(Guid id, string token) { var dto = await _service.DownloadAsync(id, token); var memoryStream = new MemoryStream(dto.Content); return(new FileStreamResult(memoryStream, dto.MimeType) { FileDownloadName = dto.FileName }); }