shopping-cart-blazor-wasm/Shared/Cart/Details.cs

26 lines
630 B
C#
Raw Normal View History

2020-06-19 10:20:16 +02:00
using System.Collections.Generic;
using MediatR;
namespace ShoppingCartStarter.Shared.Cart
{
public class Details
{
public class Query : IRequest<Model>
{
}
public class Model
{
public List<LineItem> Items { 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; }
}
}
}
}