Use Byte[] instead of File for DTO
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user