forked from sanchezvem/PyroFetes
Commentaire des DTO
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
namespace PyroFetes.DTO.Product.Response
|
||||
{
|
||||
// DTO pour la lecture des fournisseurs liés à un produit
|
||||
public class GetProductSupplierDto
|
||||
{
|
||||
public int ProductId { get; set; }
|
||||
public int SupplierId { get; set; }
|
||||
public string SupplierName { get; set; } = string.Empty;
|
||||
public decimal SellingPrice { get; set; }
|
||||
}
|
||||
}
|
||||
// DTO utilisé pour renvoyer les informations d’un fournisseur lié à un produit
|
||||
public class GetProductSupplierDto
|
||||
{
|
||||
// Identifiant du produit concerné
|
||||
public int ProductId { get; set; }
|
||||
|
||||
// Identifiant du fournisseur
|
||||
public int SupplierId { get; set; }
|
||||
|
||||
// Nom du fournisseur
|
||||
public string SupplierName { get; set; } = string.Empty;
|
||||
|
||||
// Prix de vente du produit fourni par ce fournisseur
|
||||
public decimal SellingPrice { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user