ToUserList() public static method

public static ToUserList ( List entities ) : IEnumerable
entities List
return IEnumerable
示例#1
0
        public IEnumerable <User> FindOrdinaryUsers()
        {
            List <UserEntity> entities = Users.Where(x => !x.IsEditor && !x.IsAdmin).ToList();

            return(FromEntity.ToUserList(entities));
        }
        public IEnumerable <User> FindAllAdmins()
        {
            List <UserEntity> entities = Users.Where(x => x.IsAdmin).ToList();

            return(FromEntity.ToUserList(entities));
        }
示例#3
0
        public IEnumerable <User> AllUsers()
        {
            List <UserEntity> entities = Users.ToList();

            return(FromEntity.ToUserList(entities));
        }