Impliment ProductImages

This commit is contained in:
2025-06-28 09:41:46 -07:00
parent 3999bbed78
commit 0323215a70
4 changed files with 106 additions and 40 deletions
@@ -25,7 +25,7 @@ namespace MistoxWebsite.Server.Entities {
public string Name { get; set; } = "";
public string Description { get; set; } = "";
public int CurShowingIMG = 0;
public FormFile[] Images { get; set; } = [];
public ProductImage[] Images { get; set; } = [];
public int Cost { get; set; }
public string URL { get; set; } = "";
}
@@ -33,7 +33,7 @@ namespace MistoxWebsite.Server.Entities {
public class ProductImage {
public int ImageID { get; set; } // PK
public int ProductID { get; set; }
public byte[] Image { get; set; } = [];
public FormFile? Image { get; set; } = null;
}
public class Cart {