/// <summary> /// 获取管理后台分页数据 /// </summary> /// <param name="predicate">条件表达式树</param> /// <param name="page">第几页</param> /// <param name="row">煤业显示多少条</param> /// <param name="orderBy">排序条件</param> /// <returns></returns> public PageList <sys_userrole> GetPageList(Expression <Func <sys_userrole, bool> > predicate, int page, int row, string orderBy) { PageList <sys_userrole> pageList = new PageList <sys_userrole>(); pageList.code = 0; pageList.msg = "获取成功"; int totalNumber = 0; pageList.data = _Sys_UserRoleRepositoryS.FindPageListByClause(predicate, page, row, orderBy, ref totalNumber); pageList.count = totalNumber; return(pageList); }
/// <summary> /// 根据条件分页 /// </summary> /// <param name="predicate">条件表达式树</param> /// <param name="page">第几页</param> /// <param name="row">每页显示多少条</param> /// <param name="orderBy">排序规则</param> /// <returns></returns> public IEnumerable <sys_userrole> FindPageListByClause(Expression <Func <sys_userrole, bool> > predicate, int page, int row, string orderBy) { return(_Sys_UserRoleRepositoryS.FindPageListByClause(predicate, page, row, orderBy)); }