sonderangebot artikel

This commit is contained in:
Tizian.Breuch
2025-08-12 14:32:47 +02:00
parent 3e68caf33c
commit 169c1aa2fd
11 changed files with 85 additions and 11 deletions

View File

@@ -137,6 +137,8 @@ namespace Webshop.Application.Services.Admin
OldPrice = productDto.OldPrice,
SupplierId = productDto.SupplierId,
PurchasePrice = productDto.PurchasePrice,
IsFeatured = productDto.IsFeatured, // << NEU >>
FeaturedDisplayOrder = productDto.FeaturedDisplayOrder, // << NEU >>
Images = images,
Productcategories = productDto.CategorieIds.Select(cId => new Productcategorie { categorieId = cId }).ToList()
};
@@ -196,6 +198,8 @@ namespace Webshop.Application.Services.Admin
existingProduct.SupplierId = productDto.SupplierId;
existingProduct.PurchasePrice = productDto.PurchasePrice;
existingProduct.LastModifiedDate = DateTimeOffset.UtcNow;
existingProduct.IsFeatured = productDto.IsFeatured; // << NEU >>
existingProduct.FeaturedDisplayOrder = productDto.FeaturedDisplayOrder; // << NEU >>
// Kategorien synchronisieren
existingProduct.Productcategories.Clear();