PIAPS_CW/Contracts/ViewModels/PurchaseViewModel.cs

21 lines
499 B
C#
Raw Normal View History

2024-06-11 12:18:10 +04:00
using DataModels.Enums;
using DataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.ViewModels
{
public class PurchaseViewModel
{
public Guid Id { get; set; }
2024-06-20 22:32:22 +04:00
public DateTime DatePurchase { get; set; }
public required Guid UserId { get; set; }
2024-06-11 12:18:10 +04:00
public PurchaseStatus Status { get; set; }
public Dictionary<Guid, (IProduct, int)> PurchaseProducts { get; set; } = new()
}
2024-06-11 12:18:10 +04:00
}