Ejemplo n.º 1
0
        /// <summary>
        /// 获取管理后台分页数据
        /// </summary>
        /// <param name="predicate">条件表达式树</param>
        /// <param name="page">第几页</param>
        /// <param name="row">煤业显示多少条</param>
        /// <param name="orderBy">排序条件</param>
        /// <returns></returns>
        public PageList <sys_role> GetPageList(Expression <Func <sys_role, bool> > predicate, int page, int row, string orderBy)
        {
            PageList <sys_role> pageList = new PageList <sys_role>();

            pageList.code = 0;
            pageList.msg  = "获取成功";
            int totalNumber = 0;

            pageList.data  = _Sys_RoleRepositoryS.FindPageListByClause(predicate, page, row, orderBy, ref totalNumber);
            pageList.count = totalNumber;
            return(pageList);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 根据条件分页
 /// </summary>
 /// <param name="predicate">条件表达式树</param>
 /// <param name="page">第几页</param>
 /// <param name="row">每页显示多少条</param>
 /// <param name="orderBy">排序规则</param>
 /// <returns></returns>
 public IEnumerable <sys_role> FindPageListByClause(Expression <Func <sys_role, bool> > predicate, int page, int row, string orderBy)
 {
     return(_Sys_RoleRepositoryS.FindPageListByClause(predicate, page, row, orderBy));
 }