Beispiel #1
0
        public ActionResult _AutoCompleteAjaxLoading(string text)
        {
            ISearchProvider provider = IoCFactory.Container.ResolveForSession <ISearchProvider>();

            return(new JsonResult {
                Data = new SelectList(provider.GetTextBoxSearchValues(text, GetFilterAC(), Session["SearchType"].ToString(), 10).SearchComponent.TextBoxSearchValues, "Value", "Name")
            });
        }
Beispiel #2
0
        /// <summary>
        /// free text search over the index
        /// </summary>
        /// <param name="value">search value</param>
        /// <returns></returns>
        public SearchModel Get(string value)
        {
            ISearchProvider provider = IoCFactory.Container.ResolveForSession <ISearchProvider>();

            return(provider?.GetTextBoxSearchValues(value, "", "new", 10));
        }