/// <summary> /// Gets a product specification attribute mapping /// </summary> /// <param name="productSpecificationAttributeId">Product specification attribute mapping identifier</param> /// <returns>Product specification attribute mapping</returns> public virtual ProductSpecificationAttribute GetProductSpecificationAttributeById(int productSpecificationAttributeId) { if (productSpecificationAttributeId == 0) { return(null); } return(_productSpecificationAttributeRepository.GetById(productSpecificationAttributeId)); }
/// <summary> /// Gets a specification attribute option /// </summary> /// <param name="specificationAttributeOptionId">The specification attribute option identifier</param> /// <returns>Specification attribute option</returns> public virtual SpecificationAttributeOption GetSpecificationAttributeOptionById(int specificationAttributeOptionId) { if (specificationAttributeOptionId == 0) { return(null); } return(_specificationAttributeOptionRepository.GetById(specificationAttributeOptionId)); }