Beispiel #1
0
        public JsonResult GetData(string sql, string where, string tableName, int pageNo, bool ForMobile)
        {
            Ctx ctx = Session["ctx"] as Ctx;

            VIS.Models.InfoProductModel model = new Models.InfoProductModel();
            sql   = SecureEngineBridge.DecryptByClientKey(sql, ctx.GetSecureKey());
            where = SecureEngineBridge.DecryptByClientKey(where, ctx.GetSecureKey());
            return(Json(JsonConvert.SerializeObject(model.GetData(sql, where, tableName, pageNo, ForMobile, ctx)), JsonRequestBehavior.AllowGet));
        }
 public JsonResult GetData(string sql, string tableName)
 {
     VIS.Models.InfoProductModel model = new Models.InfoProductModel();
     //model.GetSchema(Ad_InfoWindow_ID);
     return(Json(JsonConvert.SerializeObject(model.GetData(sql, tableName, Session["ctx"] as Ctx)), JsonRequestBehavior.AllowGet));
 }