Example #1
0
 /* Добавление комментария в БД */
 public void AddComment(Comment comment)
 {
     using (var transaction = _session.BeginTransaction())
     {
         _session.Save(comment);
         transaction.Commit();
     }
 }
Example #2
0
 /// <summary>
 /// 删除评论权限
 /// </summary>
 /// <param name="comment"></param>
 /// <returns></returns>
 public bool DeleteCommentPower(Comment comment)
 {
     return(EditCommentPower(comment));
 }