public IActionResult GetTerms(GenericSearchModel model) { var results = termSearchEngine.Search(new SearchCriteria(club.Guid) { Limit = model.Limit, Page = model.Page, SearchEntity = "term", SearchTerm = model.Query }); return(Ok(new { results })); }
public IActionResult Get(GenericSearchModel model) { var results = libraryQuery.Search(club.Guid, model.Query, model.Page, model.Limit) ?? new List <string>();; return(new JsonResult(results)); }
public IActionResult Get(GenericSearchModel model) { var results = memberQuery.SearchPlayers(model.Query, model.Page, model.Limit) ?? new List <PlayerSearchResult>();; return(new JsonResult(results?.Select(t => new { id = t.PlayerId, text = $"{t.PlayerName} {t.SquadName}" }))); }