public void AddComment(Comment comment) { comment.DateCreated = DateTime.Now; Comments.Add(comment); Raise(new CommentAdded {PresentationId = Id}); }
public ActionResult PostComment(int id, Comment comment) { var presentation = GetSession(id, true); presentation.AddComment(comment); _repository.Save(presentation); return View("DisplayTemplates/Comment", comment); }