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}" }))); }