public async Task <bool> ExistLike(string name) { var settings = ConnectionSettings.CreateBasicAuth(Neo4JClient.uri, Neo4JClient.user, Neo4JClient.password); using (var client = new Neo4JClient(settings)) { Like like = new Like { Name = name }; LikeService myService = new LikeService(client); myService.addLike(like); List <bool> ans = await myService.ExistLike(myService.likes); return(ans[0]); } }