update search and products

This commit is contained in:
MarcEricMartel
2022-10-16 17:33:58 -07:00
parent dbc1c78f07
commit 272c232530
7 changed files with 51 additions and 18 deletions

View File

@@ -24,6 +24,8 @@ public class Product {
public string Description { get; set; } = "Lorem Ipsum.";
[Required, Range(0.01, (double)decimal.MaxValue)] // Range qui prend pas les decimals!
public decimal Price { get; set; } = 0;
[Required, Range(0.00, (double)decimal.MaxValue)]
public decimal PromoPrice { get; set; } = 0;
public uint Quantity { get; set; } = 0;
public States Status { get; set; } = States.Available;
public string? ImageName { get; set; } // Base pour sortir les images ({ImageName}.jpg , {ImageName}_thumbnail.jpg, etc...)