Пример #1
0
        /// <summary>
        /// 更新一条商品回复数据
        /// </summary>
        /// <param name="productReply">商品回复模型变量</param>
        public static void UpdateProductReply(ProductReplyInfo productReply)
        {
            ProductReplyInfo tempProductReply = ReadProductReply(productReply.ID, 0);

            dal.UpdateProductReply(productReply);
            if (productReply.CommentID != tempProductReply.CommentID)
            {
                ProductCommentBLL.ChangeProductCommentCount(tempProductReply.CommentID, ChangeAction.Minus);
                ProductCommentBLL.ChangeProductCommentCount(productReply.CommentID, ChangeAction.Plus);
            }
        }
Пример #2
0
 /// <summary>
 /// 增加一条商品回复数据
 /// </summary>
 /// <param name="productReply">商品回复模型变量</param>
 public static int AddProductReply(ProductReplyInfo productReply)
 {
     productReply.ID = dal.AddProductReply(productReply);
     ProductCommentBLL.ChangeProductCommentCount(productReply.CommentID, ChangeAction.Plus);
     return(productReply.ID);
 }