PIAPS_CW/Contracts/ViewModels/SupplyViewModel.cs

24 lines
720 B
C#
Raw Normal View History

using DataModels.Enums;
2024-06-22 12:18:43 +04:00
using DataModels.Models;
using System;
using System.Collections.Generic;
2024-06-22 15:10:46 +04:00
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.ViewModels
{
public class SupplyViewModel
{
public Guid Id { get; set; }
2024-06-22 12:18:43 +04:00
public string Name { get; set; } = string.Empty;
2024-06-22 15:10:46 +04:00
public Guid SupplierId { get; set; }
public string SupplierName { get; set; } = string.Empty;
public double Price { get; set; }
2024-06-22 12:18:43 +04:00
public Dictionary<Guid, (IProduct, int)> Products { get; set; } = new();
public DateTime Date { get; set; }
public SupplyStatus Status { get; set; }
}
}