sonderangebot artikel
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user