shopping-cart-blazor-wasm/Server/DomainModels/ShoppingCart.cs

20 lines
530 B
C#
Raw Permalink Normal View History

2020-06-19 10:20:16 +02:00
using System.Collections.Generic;
namespace ShoppingCartStarter.Server.DomainModels
{
public class ShoppingCart
{
public int Id { get; set; }
public int SessionId { get; set; }
public List<LineItem> LineItems { get; set; } = new List<LineItem>();
}
public class LineItem
{
public int Id { get; set; }
public string Name { get; set; }
public int Quantity { get; set; }
public decimal Price { get; set; }
public string Image { get; set; }
}
}