forked from sanchezvem/PyroFetes
gabriel2
This commit is contained in:
7
PyroFetes/DTO/ProductColor/Request/ProductColorDto.cs
Normal file
7
PyroFetes/DTO/ProductColor/Request/ProductColorDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace PyroFetes.DTO.ProductColor.Request;
|
||||
// DTO utilisé pour créer ou mettre à jour la relation Product <-> Color
|
||||
public class ProductColorDto
|
||||
{
|
||||
public int ProductId { get; set; } // Id du produit (pour update)
|
||||
public int ColorId { get; set; } // Id de la couleur
|
||||
}
|
11
PyroFetes/DTO/ProductColor/Response/GetProductColorDto.cs
Normal file
11
PyroFetes/DTO/ProductColor/Response/GetProductColorDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace PyroFetes.DTO.ProductColor.Response;
|
||||
// DTO utilisé pour renvoyer les informations d’un produit lié à une couleur
|
||||
|
||||
public class GetProductColorDto
|
||||
{
|
||||
// Identifiant du produit concerné
|
||||
public int ProductId { get; set; }
|
||||
|
||||
// Identifiant de la couleur
|
||||
public int ColorId { get; set; }
|
||||
}
|
8
PyroFetes/DTO/ProductEffect/Request/ProductEffectDto.cs
Normal file
8
PyroFetes/DTO/ProductEffect/Request/ProductEffectDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace PyroFetes.DTO.ProductEffect.Request;
|
||||
|
||||
// DTO utilisé pour créer ou mettre à jour la relation Product <-> Effect
|
||||
public class ProductEffectDto
|
||||
{
|
||||
public int ProductId { get; set; } // Id du produit (pour update)
|
||||
public int EffectId { get; set; } // Id de l'effet
|
||||
}
|
12
PyroFetes/DTO/ProductEffect/Response/GetProductEffectDto.cs
Normal file
12
PyroFetes/DTO/ProductEffect/Response/GetProductEffectDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace PyroFetes.DTO.ProductEffect.Response;
|
||||
|
||||
// DTO utilisé pour renvoyer les informations d’un produit lié à un effet
|
||||
|
||||
public class GetProductEffectDto
|
||||
{
|
||||
// Identifiant du produit concerné
|
||||
public int ProductId { get; set; }
|
||||
|
||||
// Identifiant de l'effet
|
||||
public int EffectId { get; set; }
|
||||
}
|
@@ -10,7 +10,7 @@ public class DeleteMaterialEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("Api/materials/{@id}", x => new { x.Id });
|
||||
Delete("/materials/{@id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user