Commentaire des DTO

This commit is contained in:
2025-10-10 11:21:57 +02:00
parent 44da6ed371
commit b3347fe163
33 changed files with 595 additions and 240 deletions

View File

@@ -1,6 +1,9 @@
namespace API.DTO.ProductCategory.Request;
public class CreateProductCategoryDto
namespace API.DTO.ProductCategory.Request
{
public string? Label { get; set; }
// DTO pour créer une catégorie de produit
public class CreateProductCategoryDto
{
// Nom de la catégorie
public string? Label { get; set; }
}
}

View File

@@ -1,7 +1,12 @@
namespace API.DTO.ProductCategory.Request;
public class UpdateProductCategoryDto
namespace API.DTO.ProductCategory.Request
{
public int Id { get; set; }
public string? Label { get; set; }
// DTO pour mettre à jour une catégorie de produit
public class UpdateProductCategoryDto
{
// Identifiant de la catégorie
public int Id { get; set; }
// Nom de la catégorie
public string? Label { get; set; }
}
}

View File

@@ -1,8 +1,12 @@
namespace API.DTO.ProductCategory.Response;
public class GetProductCategoryDto
namespace API.DTO.ProductCategory.Response
{
public int Id { get; set; }
public string? Label { get; set; }
// DTO pour récupérer une catégorie de produit
public class GetProductCategoryDto
{
// Identifiant de la catégorie
public int Id { get; set; }
// Nom de la catégorie
public string? Label { get; set; }
}
}