示例#1
0
        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 }));
        }
示例#2
0
        public IActionResult Get(GenericSearchModel model)
        {
            var results = libraryQuery.Search(club.Guid, model.Query, model.Page, model.Limit) ?? new List <string>();;

            return(new JsonResult(results));
        }
示例#3
0
        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}" })));
        }