Beispiel #1
0
        // GET api/<controller>
        public IEnumerable <SearchResult> Get()
        {
            SearchRequest req = new SearchRequest {
                SearchTerm = "*"
            };

            return(AzureSearchHelper.DoSearch(req));
        }
        // POST api/<controller>
        public SearchResult[] Post(SearchRequest request)
        {
            var result = AzureSearchHelper.DoSearch(request);

            return(result);
        }