From e037e11a648cc9dfd4d5a9dad18f7eb1698db083 Mon Sep 17 00:00:00 2001 From: GokaPek Date: Thu, 2 May 2024 19:15:37 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=88=D0=B0=D0=BC=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D1=81=20=D0=B4=D0=B8=D1=81=D1=86=D0=B8=D0=BF?= =?UTF-8?q?=D0=BB=D0=B8=D0=BD=D0=BE=D0=B9=20(=D0=BD=D0=B5=D0=BC=D0=BD?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UniversityContracts/BindingModels/DisciplineBindingModel.cs | 1 + .../UniversityContracts/ViewModels/DisciplineViewModel.cs | 2 ++ 2 files changed, 3 insertions(+) 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;