public JsonResult GetData(string sql, string tableName, int pageNo) { InfoWindowModel model = new InfoWindowModel(); //model.GetSchema(Ad_InfoWindow_ID); return(Json(JsonConvert.SerializeObject(model.GetData(sql, tableName, pageNo, Session["ctx"] as Ctx)), JsonRequestBehavior.AllowGet)); }
public JsonResult GetSearchColumn(int Ad_InfoWindow_ID) { Ctx ctx = Session["ctx"] as Ctx; InfoWindowModel model = new InfoWindowModel(); //model.GetSchema(Ad_InfoWindow_ID); return(Json(new { result = model.GetSchema(Ad_InfoWindow_ID, ctx) }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetInfoWindowID(string InfoSearchKey) { InfoWindowModel model = new InfoWindowModel(); return(Json(new { result = model.GetInfoWindowID(InfoSearchKey) }, JsonRequestBehavior.AllowGet)); }