コード例 #1
0
ファイル: Session.cs プロジェクト: rtennys/EventServer
 public void AddComment(Comment comment)
 {
     comment.DateCreated = DateTime.Now;
     Comments.Add(comment);
     Raise(new CommentAdded {PresentationId = Id});
 }
コード例 #2
0
ファイル: Session.cs プロジェクト: roundtable/EventServer
 public void AddComment(Comment comment)
 {
     comment.DateCreated = DateTime.Now;
     Comments.Add(comment);
     Raise(new CommentAdded {PresentationId = Id});
 }
コード例 #3
0
        public ActionResult PostComment(int id, Comment comment)
        {
            var presentation = GetSession(id, true);

            presentation.AddComment(comment);
            _repository.Save(presentation);

            return View("DisplayTemplates/Comment", comment);
        }