/// <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); } }
/// <summary> /// 删除默认属性值 /// </summary> /// <param name="attribute"></param> public virtual async Task DeletePredefinedValueAsync(PredefinedProductAttributeValue attribute) { await PredefinedProductAttributeValueRepository.DeleteAsync(attribute); }