ToUserList() публичный статический Метод

public static ToUserList ( List entities ) : IEnumerable
entities List
Результат IEnumerable
Пример #1
0
        public IEnumerable <User> FindOrdinaryUsers()
        {
            List <UserEntity> entities = Users.Where(x => !x.IsEditor && !x.IsAdmin).ToList();

            return(FromEntity.ToUserList(entities));
        }
Пример #2
0
        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));
        }