public async Task <IActionResult> GetAttachment(long attachmentId) { var attachment = await _attachmentService.DownloadAttachmentAsync(attachmentId); return(File ( attachment.Data.DownloadInfo.Content, attachment.Data.DownloadInfo.ContentType, attachment.Data.FileName )); }