public ActionResult GetEntities(Pager pager) { OperateResult or = DepartmentManager.GetByPager(new QueryParam { pager = pager }); if (or.status == OperateStatus.Success && or.data != null) { return(Json(or.data, JsonRequestBehavior.AllowGet)); } return(Json(or, JsonRequestBehavior.AllowGet)); }