Esempio n. 1
0
        public LargeJsonResult GetStockistData(FormCollection coll)
        {
            BL_Customer objStockist = new BL_Customer();
            List <MVCModels.HiDoctor_Master.CustomerModel> lstStockist = new List <MVCModels.HiDoctor_Master.CustomerModel>();

            lstStockist = objStockist.GetStockistWithRegion(_objcurrentInfo.GetCompanyCode(), coll["regionCode"].ToString());
            return(new LargeJsonResult
            {
                MaxJsonLength = Int32.MaxValue,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet,
                Data = new
                {
                    total = lstStockist.Count,
                    data = lstStockist
                }
            });
        }