Example #1
0
        public JsonResult CustomerStatusList(decimal UID, DateTime DateFrom, DateTime DateTo)
        {
            var db  = new DemoEntities();
            var lst = db.SP_CustomerwiseStatusList(UID).ToList().Where(x => x.DocumentDate >= DateFrom && x.DocumentDate <= DateTo).ToList();
            var r   = Json(lst, JsonRequestBehavior.AllowGet);

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