public static Boolean AppointForumMemberToAdministrator(ForumMember forumMember) { if (Policy.isSilverMember(forumMember, forumMember.getDaysOfMembership() , forumMember.getNumOfPublishedMessages())) { Storage.forumMemberStorage.Remove(forumMember); Storage.adminStorage.Add(new Administrator(forumMember)); return(true); } else { Console.Out.WriteLine(forumMember.getName() + " is not silver member, than can't becmoe administrator"); return(false); } }
public Administrator(ForumMember forumMember) : base(forumMember.getName(), forumMember.getPassword(), forumMember.getE_Mail()) { }