Inheritance: IOrphanable, ICustomField
Example #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);
            }
        }
Example #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);
     }
 }