Ejemplo n.º 1
0
        public void InsertPost(Post message)
        {
            this.MyPosts.Add(message);

            List <Post> Plist = new List <Post>();

            Plist.Add(message);

            if (MyBoard.ContainsKey(message.Author))
            {
                this.MyBoard[message.Author].Add(message);
            }
            else
            {
                this.MyBoard.Add(key: message.Author, value: Plist);
                this.MyUsers.Add(message.Author);
            }
        }