Ejemplo n.º 1
0
        //public List<Gebruiker> getLeden()
        //{
        //    return ForaLidschappen.Select(fl => fl.Gebruiker).ToList();
        //}

        public bool heeftLid(Gebruiker gebruiker)
        {
            if (gebruiker != null)
            {
                return(ForaLidschappen.Any(fl => fl.GebruikerId == gebruiker.Id));
            }
            return(false);
        }
Ejemplo n.º 2
0
 public void addPost(Post post)
 {
     if (ForaLidschappen.Any(f => f.GebruikerId == post.Poster.Id))
     {
         Posts.Add(post);
     }
     else
     {
         throw new ArgumentException("Enkel volgers kunnen posts maken");
     }
 }
Ejemplo n.º 3
0
 public void addLid(Gebruiker gebruiker)
 {
     ForaLidschappen.Add(new ForumLid(this, gebruiker));
 }