Computer_Hardware_Store/HardwareShop/HardwareShopContracts/BindingModels/ComponentBindingModel.cs
2023-05-17 12:28:05 +04:00

37 lines
816 B
C#

using HardwareShopContracts.ViewModels;
using HardwareShopDataModels.Models;
namespace HardwareShopContracts.BindingModels
{
public class ComponentBindingModel : IComponentModel
{
public int Id { get; set; }
public string ComponentName { get; set; } = string.Empty;
public double Cost { get; set; }
public int UserId { get; set; }
public DateTime DateCreate { get; set; } = DateTime.Now;
public Dictionary<int, (IBuildModel, int)> ComponentBuilds
{
get;
set;
} = new();
public List<BuildViewModel> ComponentBuildsBuilds
{
get;
set;
} = new();
public List<int> ComponentBuildsCounts
{
get;
set;
} = new();
}
}