Exemplo n.º 1
0
        public JsonResult GetCardViewColumns(int ad_CardView_ID)
        {
            Ctx                               ctx = Session["ctx"] as Ctx;
            CardViewModel                     objCardViewModel   = new CardViewModel();
            List <CardViewPropeties>          lstCardView        = objCardViewModel.GetCardViewColumns(ad_CardView_ID, ctx);
            List <CardViewConditionPropeties> lstCVConditon      = objCardViewModel.GetCardViewCondition(ad_CardView_ID, ctx);
            ParameterPropeties                objParamProperties = new ParameterPropeties()
            {
                lstCardViewData         = lstCardView,
                lstCardViewConditonData = lstCVConditon
            };
            List <ParameterPropeties> lstParamProperties = new List <ParameterPropeties>();

            lstParamProperties.Add(objParamProperties);
            var jsonResult = Json(JsonConvert.SerializeObject(lstParamProperties), JsonRequestBehavior.AllowGet);

            jsonResult.MaxJsonLength = int.MaxValue;
            return(jsonResult);
        }