dto change

This commit is contained in:
Tizian.Breuch
2025-07-22 08:40:24 +02:00
parent 3f3b5b285b
commit 948a1e5173
2 changed files with 53 additions and 4 deletions

View File

@@ -3,10 +3,16 @@ namespace Webshop.Application.DTOs
{
public class ProductDto
{
public Guid Id { get; set; }
public Guid Id { get; set; } // Wird bei Erstellung oft vom Backend gesetzt
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty; // Kann null sein
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
}
}