public PageListResult <UserDto> GetUserPageList(UserSearchDto userSearchDto)
        {
            var result = _userRepository.GetAll().WhereIf(!userSearchDto.KeyWord.IsNullOrWhiteSpace(), m => m.Account.Contains(userSearchDto.KeyWord))
                         .OrderBy(userSearchDto.Orderby).PageBy <Users, UserDto>(userSearchDto);

            return(result);
        }
        public List <UserDto> GetUser(UserSearchDto userSearchDto)
        {
            var result = _userRepository.GetAll().WhereIf(!userSearchDto.KeyWord.IsNullOrWhiteSpace(), m => (m.Account.Contains(userSearchDto.KeyWord)))
                         .ToList();
            var mapResult = result.MapTo <List <UserDto> >();

            return(mapResult);
        }