ToUserList() public static method

public static ToUserList ( List entities ) : IEnumerable
entities List
return IEnumerable
Esempio n. 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));
        }
Esempio n. 3
0
        public IEnumerable <User> AllUsers()
        {
            List <UserEntity> entities = Users.ToList();

            return(FromEntity.ToUserList(entities));
        }