public string[] GetNames(string query = "", NameMatchMode nameMatchMode = NameMatchMode.Auto, int maxResults = 10) { return(otherService.FindNames(SearchTextQuery.Create(query, nameMatchMode), maxResults)); }
public ActionResult FindNames(string term) { var result = _otherService.FindNames(SearchTextQuery.Create(term), 10); return(Json(result)); }