public bool DeletePost(int postId) { bool deleted = DBForums.ForumPostDelete(postId); if (deleted) { Forum.DecrementPostCount(this.forumID); if (this.totalReplies > 0) { DBForums.ForumThreadDecrementReplyStats(this.threadID); } Forum forum = new Forum(this.forumID); this.moduleID = forum.ModuleId; this.postID = postId; ContentChangedEventArgs e = new ContentChangedEventArgs(); e.IsDeleted = true; OnContentChanged(e); int threadPostCount = ForumThread.GetPostCount(this.threadID); if (threadPostCount == 0) { ForumThread.Delete(this.threadID); Forum.DecrementThreadCount(this.forumID); } ResetThreadSequences(); } return(deleted); }