Files
piaps-course-work-university/contingent_report_desktop/Controller/ViewModels/SpecialisationViewModel.cs
2025-06-09 22:54:54 +04:00

25 lines
650 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using DataModels.Models;
using System.ComponentModel;
namespace Controller.ViewModels
{
public class SpecialisationViewModel
{
public SpecialisationViewModel(Specialization spec)
{
Id = spec.Id;
Name = spec.Name ?? "Не указано";
Code = spec.Code ?? "Не указано";
}
[Browsable(false)]
public int Id { get; set; }
[DisplayName("Наименование")]
public string? Name { get; set; } = string.Empty;
[DisplayName("Код направления")]
public string? Code { get; set; } = string.Empty;
}
}