Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Minor changes
supportcd182b71d30d
diff --git a/src/Business/Grand.Business.Catalog/Services/Products/ProductAttributeService.cs b/src/Business/Grand.Business.Catalog/Services/Products/ProductAttributeService.csindex 987ab59f5..b87f9aa1b 100644--- a/src/Business/Grand.Business.Catalog/Services/Products/ProductAttributeService.cs+++ b/src/Business/Grand.Business.Catalog/Services/Products/ProductAttributeService.cs@@ -322,22 +322,6 @@ namespace Grand.Business.Catalog.Services.Productsawait _mediator.EntityUpdated(productAttributeValue);}- #endregion-- #region Predefined product attribute values-- /// <summary>- /// Gets predefined product attribute values by product attribute identifier- /// </summary>- /// <param name="productAttributeId">The product attribute identifier</param>- /// <returns>Product attribute mapping collection</returns>- public virtual async Task<IList<PredefinedProductAttributeValue>> GetPredefinedProductAttributeValues(string productAttributeId)- {- var pa = await Task.FromResult(_productAttributeRepository.Table.Where(x => x.Id == productAttributeId).FirstOrDefault());- return pa.PredefinedProductAttributeValues.OrderBy(x => x.DisplayOrder).ToList();- }--#endregion#region Product attribute combinationsdiff --git a/src/Business/Grand.Business.Core/Interfaces/Catalog/Products/IProductAttributeService.cs b/src/Business/Grand.Business.Core/Interfaces/Catalog/Products/IProductAttributeService.csindex 55398e436..951e470f0 100644--- a/src/Business/Grand.Business.Core/Interfaces/Catalog/Products/IProductAttributeService.cs+++ b/src/Business/Grand.Business.Core/Interfaces/Catalog/Products/IProductAttributeService.cs@@ -98,18 +98,6 @@ namespace Grand.Business.Core.Interfaces.Catalog.Products/// <param name="productAttributeMappingId">Product attr mapping ident</param>Task UpdateProductAttributeValue(ProductAttributeValue productAttributeValue, string productId, string productAttributeMappingId);- #endregion-- #region Predefined product attribute values-- /// <summary>- /// Gets predefined product attribute values by product attribute identifier- /// </summary>- /// <param name="productAttributeId">The product attribute identifier</param>- /// <returns>Product attribute mapping collection</returns>- Task<IList<PredefinedProductAttributeValue>> GetPredefinedProductAttributeValues(string productAttributeId);--#endregion#region Product attribute combinationsdiff --git a/src/Web/Grand.Web.Admin/Services/ProductViewModelService.cs b/src/Web/Grand.Web.Admin/Services/ProductViewModelService.csindex 26cdf55e4..ef3f99f11 100644--- a/src/Web/Grand.Web.Admin/Services/ProductViewModelService.cs+++ b/src/Web/Grand.Web.Admin/Services/ProductViewModelService.cs@@ -1914,7 +1914,7 @@ namespace Grand.Web.Admin.Services//insert mappingvar productAttributeMapping = model.ToEntity();//predefined values- var predefinedValues = await _productAttributeService.GetPredefinedProductAttributeValues(model.ProductAttributeId);+ var predefinedValues = (await _productAttributeService.GetProductAttributeById(model.ProductAttributeId)).PredefinedProductAttributeValues;foreach (var predefinedValue in predefinedValues){var pav = predefinedValue.ToEntity();