пошаманил с дисциплиной (немного)

This commit is contained in:
GokaPek 2024-05-02 19:15:37 +04:00
parent 3535087e69
commit e037e11a64
2 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ namespace UniversityContracts.BindingModels
public int TeacherId { get; set; } public int TeacherId { get; set; }
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Now);
public Dictionary<int, IStudentModel> StudentDisciplines { get; set; } = new(); public Dictionary<int, IStudentModel> StudentDisciplines { get; set; } = new();
} }
} }

View File

@ -17,6 +17,8 @@ namespace UniversityContracts.ViewModels
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
[DisplayName("Описание дисциплины")] [DisplayName("Описание дисциплины")]
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
[DisplayName("Дата cоздания")]
public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Now);
public Dictionary<int, IStudentModel> StudentDisciplines public Dictionary<int, IStudentModel> StudentDisciplines
{ {
get; get;