Exemplo n.º 1
0
        /// <summary>
        /// 分页获取角色列表
        /// </summary>
        /// <param name="search"></param>
        /// <returns></returns>
        public SearchPageInfo <SysUserInfo> GetSysUsers(SearchPageInfo <SysUserInfo> search)
        {
            Check.NotNull(search, "search");
            Check.NotNull(search.PageInfo, "search.PageInfo");
            if (string.IsNullOrEmpty(search.PageInfo.OrderField))
            {
                throw ExceptionHelper.ThrowBusinessException("分页获取数据必须指定排序列");
            }

            search = _sysUserRepository.GetPageEntities(search);

            return(search);
        }