Files
PyroFetes-Sujet1/PyroFetes/DTO/Product/Response/GetProductDto.cs
2025-10-09 15:16:08 +02:00

41 lines
1.2 KiB
C#

using API.DTO.Product.Request;
namespace API.DTO.Product.Response;
public class GetProductDto
{
public int Id { get; set; }
public int Reference { get; set; }
public string? Name { get; set; }
public decimal Duration { get; set; }
public decimal Caliber { get; set; }
public int ApprovalNumber { get; set; }
public decimal Weight { get; set; }
public decimal Nec { get; set; }
public decimal SellingPrice { get; set; }
public string? Image { get; set; }
public string? Link { get; set; }
public int ClassificationId { get; set; }
public int ProductCategoryId { get; set; }
// Liste des fournisseurs liés avec leur prix de vente
public List<ProductSupplierPriceDto> Suppliers { get; set; }
public List<GetProductWarehouseDto> Warehouses { get; set; } = new();
}
public class GetProductSupplierDto
{
public int SupplierId { get; set; }
public string SupplierName { get; set; } = string.Empty;
public decimal SellingPrice { get; set; }
}
public class GetProductWarehouseDto
{
public int WarehouseId { get; set; }
public string WarehouseName { get; set; } = string.Empty;
public int Quantity { get; set; }
}