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