public List<WorldCheckService.SearchResult> GetWorldCheckMatches(string name, string keyword, string country, string category, string username) { using (var client = new WorldCheckService.WorldCheckService()) { client.UseDefaultCredentials = true; var searchResults = client.GetSearchMatches(name, keyword, country, category, null, username); return searchResults.ToList(); } }
public List<WorldCheckService.SearchResult> GetWorldCheckMatches(string name, string username) { using (var client = new WorldCheckService.WorldCheckService()) { client.UseDefaultCredentials = true; var searchResults = client.GetSearchMatches(name, null, null, null, null, username); // TODO: Remove Take(200) once WorldCheck service has been improved return searchResults.Take(200).ToList(); } }