Beispiel #1
0
        public JsonResult CustomerCreditDetails(string filterType)
        {
            GetStoreId();
            List <clsCustomerCredit> listCustomerCredit = new List <clsCustomerCredit>();

            listCustomerCredit = objDal.GetCustomerCreditList(StoreId);

            if (filterType == "Pending")
            {
                listCustomerCredit = listCustomerCredit.Where(x => x.Status.Trim() == "Payment Pending").ToList();
            }

            var Result = new
            {
                page    = 1,
                records = listCustomerCredit.Count(),
                rows    = listCustomerCredit,
                total   = 1
            };

            return(Json(Result, JsonRequestBehavior.AllowGet));
        }