Use Byte[] instead of File for DTO

This commit is contained in:
2025-06-28 11:03:16 -07:00
parent c08cf9ff43
commit dbf9ad464c
5 changed files with 36 additions and 26 deletions
@@ -33,7 +33,8 @@ namespace MistoxWebsite.Server.Entities {
public class ProductImage {
public int ImageID { get; set; } // PK
public int ProductID { get; set; }
public FormFile? Image { get; set; } = null;
public byte[] Image { get; set; } = Array.Empty<byte>();
public string Name { get; set; } = "";
}
public class Cart {