public bool AddComment(Comment comment) { comment.State = 1; return(commentHandler.AddComment(comment)); }
public ActionResult Create(NewsPage currentPage, string commentatorName, string text) { handler.AddComment(currentPage.CommentFolder, commentatorName, text, DateTime.Now); return RedirectToAction("Index"); }