ComputerHardwareStore_YouAr.../ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/PurchaseViewModel.cs

22 lines
775 B
C#
Raw Normal View History

2024-04-18 15:03:40 +04:00
using ComputerHardwareStoreDataModels.Models;
using System.ComponentModel;
namespace ComputerHardwareStoreContracts.ViewModels
{
public class PurchaseViewModel : IPurchaseModel
2024-04-18 15:03:40 +04:00
{
public int Id { get; set; }
[DisplayName("Стоимость")]
public double Cost { get; set; }
[DisplayName("Дата создания")]
public DateTime DateCreate { get; set; }
2024-05-01 11:55:41 +04:00
public DateTime? DateImplement { get; set; }
2024-04-18 15:03:40 +04:00
public int VendorId { get; set; }
[DisplayName("Сумма")]
public double Sum { get; set; }
2024-04-30 19:12:40 +04:00
public Dictionary<int, (IBuildModel, int)> PurchaseBuilds { get; set; } = new();
2024-04-18 15:03:40 +04:00
2024-05-01 11:55:41 +04:00
public Dictionary<int, (IProductModel, int)> PurchaseProducts { get; set; } = new();
2024-04-18 15:03:40 +04:00
}
}