public bool RemoveConnectionToBlogger(Blogger blogger1, Blogger blogger2) { if (this.bloggerConnection[blogger1].Contains(blogger2)) { return(this.bloggerConnection[blogger1].Remove(blogger2)); } return(false); }
public void ConnectBlogger(Blogger blogger1, Blogger blogger2) { if (this.bloggerConnection[blogger1] == null) { this.bloggerConnection[blogger1] = new List <Blogger>(); } this.bloggerConnection[blogger1].Add(blogger2); }
public void Update(Blogger blogger) { this.FirstName = blogger.FirstName; this.LastName = blogger.LastName; this.Posts.AddRange(blogger.Posts); }