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)); }
public IEnumerable <User> AllUsers() { List <UserEntity> entities = Users.ToList(); return(FromEntity.ToUserList(entities)); }