Ejemplo n.º 1
0
        public bool ProductTypeAddProperty(string typeBvin, long propertyId)
        {
            ProductTypePropertyAssociation item = this.ProductTypesXProperties.FindForTypeAndProperty(typeBvin, propertyId);

            if (item == null)
            {
                item = new ProductTypePropertyAssociation();
                item.ProductTypeBvin = typeBvin;
                item.PropertyId      = propertyId;
                return(this.ProductTypesXProperties.Create(item));
            }
            return(true);
        }
Ejemplo n.º 2
0
 public bool ProductTypeAddProperty(string typeBvin, long propertyId)
 {
     ProductTypePropertyAssociation item = this.ProductTypesXProperties.FindForTypeAndProperty(typeBvin, propertyId);
     if (item == null)
     {
         item = new ProductTypePropertyAssociation();
         item.ProductTypeBvin = typeBvin;
         item.PropertyId = propertyId;
         return this.ProductTypesXProperties.Create(item);
     }
     return true;
 }