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); }
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; }