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)); }
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)); }