Example #1
0
        public static bool Add(OrderItemInfo orderItemInfo)
        {
            bool flag = dal.Add(orderItemInfo);

            if (!flag || string.IsNullOrEmpty(orderItemInfo.TableName))
            {
                return(flag);
            }
            if (string.IsNullOrEmpty(orderItemInfo.Property))
            {
                return(Product.AddOrderNum(orderItemInfo.ProductId, orderItemInfo.TableName, orderItemInfo.Amount));
            }
            return(Product.AddOrderNum(orderItemInfo.ProductId, orderItemInfo.TableName, orderItemInfo.Property, orderItemInfo.Amount));
        }