コード例 #1
0
        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));
        }