forked from sanchezvem/PyroFetes
Ajout du Modèle du sujet 1
This commit is contained in:
15
PyroFetes/Models/WarehouseProduct.cs
Normal file
15
PyroFetes/Models/WarehouseProduct.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using API.Class;
|
||||
|
||||
namespace API.Models;
|
||||
|
||||
public class WarehouseProduct
|
||||
{
|
||||
public int Quantity { get; set; }
|
||||
|
||||
public int ProductId { get; set; }
|
||||
[Required] public Product Product { get; set; }
|
||||
|
||||
public int WarehouseId { get; set; }
|
||||
[Required] public Warehouse Warehouse { get; set; }
|
||||
}
|
Reference in New Issue
Block a user