From a174a10be3c86cac289ff2550724d64831fda19e Mon Sep 17 00:00:00 2001 From: MaxKarme <91691525+MaxKarme@users.noreply.github.com> Date: Sun, 9 Apr 2023 01:06:58 +0400 Subject: [PATCH] add statemebts in discipline --- .../UniversityContracts/BindingModels/DisciplineBindingModel.cs | 1 + .../UniversityContracts/ViewModels/DisciplineViewModel.cs | 1 + University/UniversityDataModels/Models/IDisciplineModel.cs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/University/UniversityContracts/BindingModels/DisciplineBindingModel.cs b/University/UniversityContracts/BindingModels/DisciplineBindingModel.cs index 9b07450..627295e 100644 --- a/University/UniversityContracts/BindingModels/DisciplineBindingModel.cs +++ b/University/UniversityContracts/BindingModels/DisciplineBindingModel.cs @@ -8,5 +8,6 @@ namespace UniversityContracts.BindingModels public string Name { get; set; } = String.Empty; public string Department { get; set; } = String.Empty; public int StatementId { get; set; } + public Dictionary DisciplineStatements { get; set; } = new(); } } diff --git a/University/UniversityContracts/ViewModels/DisciplineViewModel.cs b/University/UniversityContracts/ViewModels/DisciplineViewModel.cs index 4b16129..a5f888d 100644 --- a/University/UniversityContracts/ViewModels/DisciplineViewModel.cs +++ b/University/UniversityContracts/ViewModels/DisciplineViewModel.cs @@ -8,5 +8,6 @@ namespace UniversityContracts.ViewModels public string Name { get; set; } = String.Empty; public string Department { get; set; } = String.Empty; public int StatementId { get; set; } + public Dictionary DisciplineStatements { get; set; } = new(); } } diff --git a/University/UniversityDataModels/Models/IDisciplineModel.cs b/University/UniversityDataModels/Models/IDisciplineModel.cs index c2c26ae..efd1c9d 100644 --- a/University/UniversityDataModels/Models/IDisciplineModel.cs +++ b/University/UniversityDataModels/Models/IDisciplineModel.cs @@ -4,6 +4,6 @@ { String Name { get; } String Department { get; } - int StatementId { get; } + Dictionary DisciplineStatements { get; } } }