示例#1
0
        public async Task <SearchResults> GetFeaturesForProductAndGroupAsync([FromQuery(Name = "q")] string query)
        {
            // Search for features
            var featureMatches = await _featureManager.Search(query);

            // Prepare the results
            var results = new SearchResults
            {
                SearchQuery    = query,
                FeatureMatches = featureMatches.ToList()
            };

            return(results);
        }