Skip to content

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.

API - Fix for update product (Put method) - add missing mapping configuration

KrzysztofPajak982be6341f8c
diff --git a/src/API/Grand.Api/Infrastructure/Mapper/Profiles/ProductProfile.cs b/src/API/Grand.Api/Infrastructure/Mapper/Profiles/ProductProfile.cs
index 11ac73336..44b21f843 100644
--- a/src/API/Grand.Api/Infrastructure/Mapper/Profiles/ProductProfile.cs
+++ b/src/API/Grand.Api/Infrastructure/Mapper/Profiles/ProductProfile.cs
@@ -36,6 +36,14 @@ namespace Grand.Api.Infrastructure.Mapper
CreateMap<Product, ProductDto>();
+ CreateMap<ProductCategory, ProductCategoryDto>();
+ CreateMap<ProductCollection, ProductCollectionDto>();
+ CreateMap<ProductPicture, ProductPictureDto>();
+ CreateMap<ProductSpecificationAttribute, ProductSpecificationAttributeDto>();
+ CreateMap<TierPrice, ProductTierPriceDto>();
+ CreateMap<ProductWarehouseInventory, ProductWarehouseInventoryDto>();
+ CreateMap<ProductAttributeMapping, ProductAttributeMappingDto>();
+ CreateMap<ProductAttributeCombination, ProductAttributeCombinationDto>();
}
public int Order => 1;