public static void UpdateProductReply(ProductReplyInfo productReply) { ProductReplyInfo info = ReadProductReply(productReply.ID, 0); dal.UpdateProductReply(productReply); if (productReply.CommentID != info.CommentID) { ProductCommentBLL.ChangeProductCommentCount(info.CommentID, ChangeAction.Minus); ProductCommentBLL.ChangeProductCommentCount(productReply.CommentID, ChangeAction.Plus); } }
public static void DeleteProductReply(string strID, int userID) { ProductCommentBLL.ChangeProductCommentCountByGeneral(strID, ChangeAction.Minus); dal.DeleteProductReply(strID, userID); }
public static int AddProductReply(ProductReplyInfo productReply) { productReply.ID = dal.AddProductReply(productReply); ProductCommentBLL.ChangeProductCommentCount(productReply.CommentID, ChangeAction.Plus); return(productReply.ID); }