示例#1
0
        /// <summary>
        /// 删除默认属性值
        /// </summary>
        /// <param name="id"></param>
        public virtual async Task DeletePredefinedValueAsync(long id)
        {
            var attribute = await PredefinedProductAttributeValueRepository.FirstOrDefaultAsync(id);

            if (attribute != null)
            {
                await PredefinedProductAttributeValueRepository.DeleteAsync(attribute);
            }
        }
示例#2
0
 /// <summary>
 /// 删除默认属性值
 /// </summary>
 /// <param name="attribute"></param>
 public virtual async Task DeletePredefinedValueAsync(PredefinedProductAttributeValue attribute)
 {
     await PredefinedProductAttributeValueRepository.DeleteAsync(attribute);
 }