public async Task <AttachmentResponseModel> GetAttachmentData(string id, string cipherId, string attachmentId)
        {
            var user = await _userService.GetUserByPrincipalAsync(User);

            var result =
                await _emergencyAccessService.GetAttachmentDownloadAsync(new Guid(id), cipherId, attachmentId, user);

            return(new AttachmentResponseModel(result.Id, result.Data, result.Cipher, _globalSettings));
        }
Пример #2
0
        public async Task <AttachmentResponseModel> GetAttachmentData(Guid id, Guid cipherId, string attachmentId)
        {
            var user = await _userService.GetUserByPrincipalAsync(User);

            var result =
                await _emergencyAccessService.GetAttachmentDownloadAsync(id, cipherId, attachmentId, user);

            return(new AttachmentResponseModel(result));
        }
Пример #3
0
        public async Task <AttachmentResponseModel> GetAttachmentData(string id, string cipherId, string attachmentId)
        {
            var user = await _userService.GetUserByPrincipalAsync(User);

            return(await _emergencyAccessService.GetAttachmentDownloadAsync(new Guid(id), cipherId, attachmentId, user));
        }