Example #1
0
        public ActionResult GetEntities(Pager pager)
        {
            OperateResult or = PerformanceManager.GetByPager(new QueryParam {
                pager = pager
            });

            if (or.status == OperateStatus.Success &&
                or.data != null)
            {
                return(Json(or.data, JsonRequestBehavior.AllowGet));
            }

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