diff --git a/University/UniversityContracts/BindingModels/DisciplineBindingModel.cs b/University/UniversityContracts/BindingModels/DisciplineBindingModel.cs index fe848f8..f8946c5 100644 --- a/University/UniversityContracts/BindingModels/DisciplineBindingModel.cs +++ b/University/UniversityContracts/BindingModels/DisciplineBindingModel.cs @@ -15,6 +15,7 @@ namespace UniversityContracts.BindingModels public int TeacherId { get; set; } public string Name { get; set; } = string.Empty; public string Description { get; set; } = string.Empty; + public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Now); public Dictionary StudentDisciplines { get; set; } = new(); } } diff --git a/University/UniversityContracts/ViewModels/DisciplineViewModel.cs b/University/UniversityContracts/ViewModels/DisciplineViewModel.cs index 4b06540..5acd8f2 100644 --- a/University/UniversityContracts/ViewModels/DisciplineViewModel.cs +++ b/University/UniversityContracts/ViewModels/DisciplineViewModel.cs @@ -17,6 +17,8 @@ namespace UniversityContracts.ViewModels public string Name { get; set; } = string.Empty; [DisplayName("Описание дисциплины")] public string Description { get; set; } = string.Empty; + [DisplayName("Дата cоздания")] + public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Now); public Dictionary StudentDisciplines { get;