/// <summary> /// 获取管理后台分页数据 /// </summary> /// <param name="predicate">条件表达式树</param> /// <param name="page">第几页</param> /// <param name="row">煤业显示多少条</param> /// <param name="orderBy">排序条件</param> /// <returns></returns> public PageList <sys_user> GetPageList(Expression <Func <sys_user, bool> > predicate, int page, int row, string orderBy) { PageList <sys_user> pageList = new PageList <sys_user>(); pageList.code = 0; pageList.msg = "获取成功"; int totalNumber = 0; pageList.data = _Sys_UserRepositoryS.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_user> FindPageListByClause(Expression <Func <sys_user, bool> > predicate, int page, int row, string orderBy) { return(_Sys_UserRepositoryS.FindPageListByClause(predicate, page, row, orderBy)); }