Coursach/Course/Contracts/ViewModels/WorkshopViewModel.cs

21 lines
676 B
C#

using DataModels.Models;
using System.ComponentModel;
namespace Contracts.ViewModels
{
public class WorkshopViewModel : IWorkshopModel
{
public int Id { get; set; }
[DisplayName("Название цеха")]
public string Title { get; set; } = string.Empty;
[DisplayName("Адрес цеха")]
public string Address { get; set; } = string.Empty;
[DisplayName("ФИО директора цеха")]
public string Director { get; set; } = string.Empty;
public int UserId { get; set; }
public int? ProductionId { get; set; }
public string? ProductionName { get; set; }
public Dictionary<int, IWorkerModel> WorkerWorkshops { get; set; } = new();
}
}