forked from sanchezvem/PyroFetes
Commentaire des DTO
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
@@ -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; }
|
||||
}
|
||||
}
|
@@ -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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user