コード例 #1
0
ファイル: CommentService.cs プロジェクト: HuangQiii/Firewood
 public bool AddComment(Comment comment)
 {
     comment.State = 1;
     return(commentHandler.AddComment(comment));
 }
コード例 #2
0
 public ActionResult Create(NewsPage currentPage, string commentatorName, string text)
 {
     handler.AddComment(currentPage.CommentFolder, commentatorName, text, DateTime.Now);
     return RedirectToAction("Index");
 }