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

26 lines
557 B
C#
Raw Permalink Normal View History

2020-06-19 10:20:16 +02:00
using System.Collections.Generic;
using MediatR;
2021-11-09 11:44:08 +01:00
namespace ShoppingCartStarter.Shared.Cart;
public class Details
2020-06-19 10:20:16 +02:00
{
2021-11-09 11:44:08 +01:00
public class Query : IRequest<Model>
2020-06-19 10:20:16 +02:00
{
2021-11-09 11:44:08 +01:00
}
2020-06-19 10:20:16 +02:00
2021-11-09 11:44:08 +01:00
public class Model
{
public List<LineItem> Items { get; set; } = new List<LineItem>();
2020-06-19 10:20:16 +02:00
2021-11-09 11:44:08 +01:00
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; }
2020-06-19 10:20:16 +02:00
}
}
2021-11-09 11:44:08 +01:00
}