예제 #1
0
        public JsonResult LocationAutosuggest(string Prefix)
        {
            AutoSuggestTextBL obj = new AutoSuggestTextBL();

            var distlocation = (from N in obj.GetAllLocation()
                                where N.Value.ToUpper().StartsWith(Prefix.ToUpper())
                                select new { N.Value });

            return(Json(distlocation, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public JsonResult EventAutosuggest(string Prefix)
        {
            AutoSuggestTextBL obj = new AutoSuggestTextBL();

            var eventsType = (from N in obj.GetEventType()
                              where N.Value.ToUpper().StartsWith(Prefix.ToUpper())
                              select new { N.Value });

            return(Json(eventsType, JsonRequestBehavior.AllowGet));
        }
        public JsonResult StateAutosuggest(string Prefix)
        {
            AutoSuggestTextBL obj = new AutoSuggestTextBL();

            var stateList = (from N in obj.GetAllStates()
                             where N.Value.ToUpper().StartsWith(Prefix.ToUpper())
                             select new { N.Value });

            return(Json(stateList, JsonRequestBehavior.AllowGet));
        }