Creating of all product dto
This commit is contained in:
16
PyroFetes/DTO/Product/Request/CreateProductDto.cs
Normal file
16
PyroFetes/DTO/Product/Request/CreateProductDto.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
namespace PyroFetes.DTO.Product.Request;
|
||||||
|
|
||||||
|
public class CreateProductDto
|
||||||
|
{
|
||||||
|
public int References { 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 MinimalQuantity { get; set; }
|
||||||
|
}
|
@@ -0,0 +1,7 @@
|
|||||||
|
namespace PyroFetes.DTO.Product.Request;
|
||||||
|
|
||||||
|
public class PatchProductMinimalStockDto
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public int MinimalQuantity { get; set; }
|
||||||
|
}
|
17
PyroFetes/DTO/Product/Request/UpdateProductDto.cs
Normal file
17
PyroFetes/DTO/Product/Request/UpdateProductDto.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
namespace PyroFetes.DTO.Product.Request;
|
||||||
|
|
||||||
|
public class UpdateProductDto
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public int References { 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 MinimalQuantity { get; set; }
|
||||||
|
}
|
17
PyroFetes/DTO/Product/Response/GetProductDto.cs
Normal file
17
PyroFetes/DTO/Product/Response/GetProductDto.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
namespace PyroFetes.DTO.Product.Response;
|
||||||
|
|
||||||
|
public class GetProductDto
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public int References { 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 MinimalQuantity { get; set; }
|
||||||
|
}
|
Reference in New Issue
Block a user