Ejemplo n.º 1
0
        /// <summary>
        /// 分页查询用户列表
        /// </summary>
        /// <param name="pagination">分页类</param>
        /// <param name="keyword">查询关键字</param>
        /// <returns></returns>
        public UserOutputDto GetUserList(Pagination pagination, string keyword)
        {
            List <SysUserEntity> userEntityList = _sysUserRepository.GetUserListByPage(pagination, keyword);
            List <UserDto>       userDtoList    = AutoMapper.Mapper.Map <List <UserDto> >(userEntityList);
            UserOutputDto        outputDto      = new UserOutputDto();

            outputDto.UserDtoList = userDtoList;
            return(outputDto);
        }