public async Task <bool> QueryKeyInUse(string devicerepoid, String key) { var repo = await _repoManager.GetDeviceRepositoryAsync(devicerepoid, OrgEntityHeader, UserEntityHeader); return(await _deviceGroupManager.QueryKeyInUseAsync(repo, key, OrgEntityHeader)); }
public async Task <bool> QueryKeyInUse(String key) { var repo = await GetDeviceRepositoryWithSecretsAsync(); return(await _deviceGroupManager.QueryKeyInUseAsync(repo, key, OrgEntityHeader)); }