This commit is contained in:
Tizian.Breuch
2025-07-22 17:26:04 +02:00
parent dcf6e428ab
commit c8635756f1
8 changed files with 359 additions and 77 deletions

View File

@@ -1,18 +1,15 @@
// src/Webshop.Application/DTOs/ProductDto.cs
namespace Webshop.Application.DTOs
namespace Webshop.Application.DTOs
{
public class ProductDto
{
public Guid Id { get; set; } // Wird bei Erstellung oft vom Backend gesetzt
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty; // Kann null sein
public string Description { get; set; } = string.Empty;
public string SKU { get; set; } = string.Empty; // STELLEN SIE SICHER, DASS DIES DA IST
public decimal Price { get; set; }
public string Sku { get; set; } = string.Empty;
public string ShortDescription { get; set; } = string.Empty; // Kann null sein, aber hier zur Vollständigkeit
public bool IsActive { get; set; } // Muss übergeben werden
public bool IsInStock { get; set; } // Muss übergeben werden
public int StockQuantity { get; set; } // Muss übergeben werden
public string Slug { get; set; } = string.Empty; // Muss übergeben werden
public bool IsActive { get; set; }
public bool IsInStock { get; set; }
public int StockQuantity { get; set; }
public string? ImageUrl { get; set; } // STELLEN SIE SICHER, DASS DIES DA IST
}
}