Exemplo n.º 1
0
 public void AddComment(Comment comment)
 {
     comment.DateCreated = DateTime.Now;
     Comments.Add(comment);
     Raise(new CommentAdded {PresentationId = Id});
 }
Exemplo n.º 2
0
 public void AddComment(Comment comment)
 {
     comment.DateCreated = DateTime.Now;
     Comments.Add(comment);
     Raise(new CommentAdded {PresentationId = Id});
 }
Exemplo n.º 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);
        }