public JsonResult GetScreenCategoryIDByScreenGUID(string Prefix) { //Note : you can bind same list from database DA_Screen dA_Screen = new DA_Screen(); Screen sc = dA_Screen.GetAllScreenByPageID(Prefix); return(Json(sc.ScreenCategoryGUID, JsonRequestBehavior.AllowGet)); }
public JsonResult GetScreenName(string Prefix) { //Note : you can bind same list from database List <Screen> ObjList = new List <Screen>(); DA_Screen daMT = new DA_Screen(); ObjList = daMT.GetAllScreens(); //Searching records from list using LINQ query var CityList = (from N in ObjList where N.ScreenName.ToLower().Contains(Prefix.ToLower()) select new { N.ScreenName, N.ID }); return(Json(CityList, JsonRequestBehavior.AllowGet)); }