bild update
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// src/Webshop.Application/DTOs/Products/CreateAdminProductDto.cs
|
||||
using Microsoft.AspNetCore.Http; // FÜR IFormFile
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
@@ -15,14 +16,13 @@ namespace Webshop.Application.DTOs.Products
|
||||
[Required]
|
||||
public decimal Price { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
public bool IsInStock { get; set; } = true;
|
||||
public int StockQuantity { get; set; }
|
||||
[Required]
|
||||
public string Slug { get; set; }
|
||||
|
||||
// << KORREKTUR: Felder für Bild-URLs, keine IFormFile >>
|
||||
public string? MainImageUrl { get; set; }
|
||||
public List<string>? AdditionalImageUrls { get; set; }
|
||||
// << ZURÜCK ZU IFormFile >>
|
||||
public IFormFile? MainImageFile { get; set; }
|
||||
public List<IFormFile>? AdditionalImageFiles { get; set; }
|
||||
|
||||
public List<Guid> CategorieIds { get; set; } = new List<Guid>();
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// src/Webshop.Application/DTOs/Products/UpdateAdminProductDto.cs
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
@@ -17,14 +18,14 @@ namespace Webshop.Application.DTOs.Products
|
||||
[Required]
|
||||
public decimal Price { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public bool IsInStock { get; set; }
|
||||
public int StockQuantity { get; set; }
|
||||
[Required]
|
||||
public string Slug { get; set; }
|
||||
|
||||
// << KORREKTUR: Felder für Bild-URLs >>
|
||||
public string? MainImageUrl { get; set; }
|
||||
public List<string>? AdditionalImageUrls { get; set; }
|
||||
// << ZURÜCK ZU IFormFile >>
|
||||
public IFormFile? MainImageFile { get; set; }
|
||||
public List<IFormFile>? AdditionalImageFiles { get; set; }
|
||||
public List<Guid>? ImagesToDelete { get; set; }
|
||||
|
||||
public List<Guid> CategorieIds { get; set; } = new List<Guid>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user