Beispiel #1
0
        public static ICollection <BasketSkuAttribute> CrateAttributeFor(IEnumerable <SkuAttribute> skuAttributes)
        {
            ICollection <BasketSkuAttribute> attributes = new List <BasketSkuAttribute>();

            foreach (var item in skuAttributes)
            {
                BasketSkuAttribute entity = new BasketSkuAttribute
                {
                    Name  = item.Attribute.Name,
                    Value = item.AttributeValue.Value
                };

                attributes.Add(entity);
            }

            return(attributes);
        }
 public OrderItemSkuAttribute(BasketSkuAttribute skuAttribute)
 {
     this.CreateTime = DateTime.Now;
     this.Name       = skuAttribute.Name;
     this.Value      = skuAttribute.Value;
 }