Coursach/Course/Contracts/ViewModels/ProductViewModel.cs
2024-05-26 23:23:24 +04:00

24 lines
671 B
C#

using DataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.ViewModels
{
public class ProductViewModel : IProductModel
{
public int Id { get; set; }
[DisplayName("Название изделия")]
public string Name { get; set; } = string.Empty;
[DisplayName("Цена изделия")]
public double Cost { get; set; }
public int UserId { get; set; }
public int? MachineId { get; set; }
public string? MachineName { get; set; }
public Dictionary<int, (IDetailModel, int)> DetailProducts { get; set; } = new();
}
}