Exemplo n.º 1
0
        public void AddNews(string content, IUser admin)
        {
            if (!(admin is Admin))
            {
                throw new MemberAccessException();
            }
            var news = new Writing(admin, content, WritingType.News);

            _writings.Add(news);
        }
Exemplo n.º 2
0
        public void CommentGame(string comment, Player player)
        {
            var newComment = new Writing(player, comment, WritingType.Comment);

            _writings.Add(newComment);
        }