mirror of
https://github.com/Shchoholiev/shopping-assistant-web-client.git
synced 2025-04-04 16:49:36 +00:00
add new field in product model
This commit is contained in:
parent
e5496ccbfa
commit
17cd3bf438
@ -12,6 +12,8 @@ public class Product
|
||||
|
||||
public required double Rating {get; set;}
|
||||
|
||||
public required double Price { get; set; }
|
||||
|
||||
public required string[] ImagesUrls {get; set;}
|
||||
|
||||
public required bool WasOpened {get; set;}
|
||||
|
@ -7,9 +7,9 @@ public partial class Cart : ComponentBase
|
||||
{
|
||||
public List<Product> Products = new()
|
||||
{
|
||||
new Product {Id = "0", Url = "some link", Name = "HDMI", Description = "super mega hdmi cabel", Rating = 3.8, ImagesUrls = new string[] {"link"}, WasOpened = false, WishlistId = "0"},
|
||||
new Product {Id = "1", Url = "some link", Name = "HDMI", Description = "super mega hdmi cabel", Rating = 3.8, ImagesUrls = new string[] {"link"}, WasOpened = false, WishlistId = "1"},
|
||||
new Product {Id = "2", Url = "some link", Name = "HDMI", Description = "super mega hdmi cabel", Rating = 3.8, ImagesUrls = new string[] {"link"}, WasOpened = false, WishlistId = "2"}
|
||||
new Product {Id = "0", Url = "some link", Name = "HDMI", Description = "super mega hdmi cabel", Rating = 3.8, Price = 300, ImagesUrls = new string[] {"link"}, WasOpened = false, WishlistId = "0"},
|
||||
new Product {Id = "1", Url = "some link", Name = "HDMI", Description = "super mega hdmi cabel", Rating = 3.8, Price = 111, ImagesUrls = new string[] {"link"}, WasOpened = false, WishlistId = "1"},
|
||||
new Product {Id = "2", Url = "some link", Name = "HDMI", Description = "super mega hdmi cabel", Rating = 3.8, Price = 50, ImagesUrls = new string[] {"link"}, WasOpened = false, WishlistId = "2"}
|
||||
};
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
|
Loading…
Reference in New Issue
Block a user