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)); }
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)); }
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)); }