Inheritance: IOrphanable, ICustomField
Beispiel #1
0
        public virtual void SetCustomField(string name, string value)
        {
            var fieldValue = CustomFields.FirstOrDefault(f => f.FieldName == name);

            if (fieldValue != null)
            {
                fieldValue.FieldValue = value;
            }
            else
            {
                fieldValue = new ProductCustomField(name, value);
                CustomFields.Add(fieldValue);
            }
        }
Beispiel #2
0
 public virtual void SetCustomField(string name, string value)
 {
     var fieldValue = CustomFields.FirstOrDefault(f => f.FieldName == name);
     if (fieldValue != null)
     {
         fieldValue.FieldValue = value;
     }
     else
     {
         fieldValue = new ProductCustomField(name, value);
         CustomFields.Add(fieldValue);
     }
 }