Inheritance: IOrphanable, ICustomField
Ejemplo n.º 1
0
        public void SetVariantField(string name, string value)
        {
            var field = VariantFields.FirstOrDefault(f => f.FieldName == name);

            if (field != null)
            {
                field.FieldValue = value;
            }
            else
            {
                field = new ProductVariantField(name, value);
                VariantFields.Add(field);
            }
        }
Ejemplo n.º 2
0
 public void SetVariantField(string name, string value)
 {
     var field = VariantFields.FirstOrDefault(f => f.FieldName == name);
     if (field != null)
     {
         field.FieldValue = value;
     }
     else
     {
         field = new ProductVariantField(name, value);
         VariantFields.Add(field);
     }
 }