mirror of
https://github.com/Shchoholiev/shopping-assistant-web-client.git
synced 2025-04-11 01:18:50 +00:00
26 lines
799 B
C#
26 lines
799 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace ShoppingAssistantWebClient.Web.Pages
|
|
{
|
|
public class CartModel : PageModel
|
|
{
|
|
public List<Product> products = new List<Product> {
|
|
new Product {Description = "HDMI cabel HDMI cabel HDMI cabel HDMI cabel HDMI cabel HDMI cabelHDMI cabel", Rating = 4.0, Price = 12},
|
|
new Product {Description = "super mega hdmi cabel", Rating = 3.8, Price = 13.11},
|
|
new Product {Description = "", Rating = 4.0}
|
|
};
|
|
|
|
public void OnGet()
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
public class Product {
|
|
public string Description {get; set;}
|
|
public double? Rating {get; set;}
|
|
public double? Price {get; set;}
|
|
}
|
|
}
|