Example #1
0
        public ItemInfoMessageEntity GetItemInfo(string query, string maxResults)
        {
            int max;

            if (!int.TryParse(maxResults, out max))
            {
                max = 5;
            }


            var result = _adviceSearchApplicationService.SearchListInfo("", query, max,
                                                                        _shopgunWebOperationContext);

            return(result);
        }
Example #2
0
        public JsonResult AutoCompleteSearch(string query, int maxPerCategory)
        {
            var result = _adviceSearchApplicationService.SearchListInfo("", query, maxPerCategory, null);

            return(Json(result));
        }
Example #3
0
 public ItemInfoMessageEntity SearchListInfo(string userSubcriptionToken, string queryString)
 {
     return(_adviceSearchApplicationService.SearchListInfo(userSubcriptionToken, queryString, 5,
                                                           _shopgunWebOperationContext));
 }