public async Task <List <ReservedSearchResult> > GetGuidedPathways(string gender, string ageGroup, [FromBody] SearchRequest request)
        {
            var results = await _pathwaySearchService.FindReservedResults(request.Query, gender, ageGroup);

            return(results);
        }
        public async Task <List <PathwaySearchResult> > Get(string gender, string ageGroup, [FromBody] SearchRequest request, [FromUri] bool highlight = false, [FromUri] bool score = false)
        {
            var results = await _pathwaySearchService.FindResults(request.Query, gender, ageGroup, highlight, score);

            if (request.Postcode != null)
            {
                var filteredresults = await _searchResultFilter.Filter(results, new Dictionary <string, string>() { { "postcode", request.Postcode } });

                return(filteredresults.ToList());
            }

            return(results);
        }