forked from sanchezvem/PyroFetes
Maj Warehouse et Supplier
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
namespace PyroFetes.DTO.Product.Request
|
||||
{
|
||||
// DTO utilisé pour créer ou mettre à jour la relation Product <-> Warehouse
|
||||
public class CreateProductWarehouseDto
|
||||
{
|
||||
public int WarehouseId { get; set; }
|
||||
public int ProductId { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
}
|
||||
|
||||
public class UpdateProductWarehouseDto
|
||||
{
|
||||
public int WarehouseId { get; set; }
|
||||
public int ProductId { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
namespace PyroFetes.DTO.Product.Response
|
||||
{
|
||||
// DTO pour la lecture des entrepôts liés à un produit
|
||||
public class GetProductWarehouseDto
|
||||
{
|
||||
public int WarehouseId { get; set; }
|
||||
public int ProductId { get; set; }
|
||||
public string WarehouseName { get; set; } = string.Empty;
|
||||
public int Quantity { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user