diff --git a/University/UniversityContracts/StoragesContracts/IActivityStorage.cs b/University/UniversityContracts/StoragesContracts/IActivityStorage.cs index 28c2329..518fe7e 100644 --- a/University/UniversityContracts/StoragesContracts/IActivityStorage.cs +++ b/University/UniversityContracts/StoragesContracts/IActivityStorage.cs @@ -1,8 +1,16 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.StoragesContracts { public interface IActivityStorage { + List GetFullList(); + List GetFilteredList(ActivitySearchModel model); + ActivityViewModel? GetElement(ActivitySearchModel model); + ActivityViewModel? Insert(ActivityBindingModel model); + ActivityViewModel? Update(ActivityBindingModel model); + ActivityViewModel? Delete(ActivityBindingModel model); } } diff --git a/University/UniversityContracts/StoragesContracts/IDisciplineStorage.cs b/University/UniversityContracts/StoragesContracts/IDisciplineStorage.cs index 0c3e1d9..30c246b 100644 --- a/University/UniversityContracts/StoragesContracts/IDisciplineStorage.cs +++ b/University/UniversityContracts/StoragesContracts/IDisciplineStorage.cs @@ -1,8 +1,16 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.StoragesContracts { public interface IDisciplineStorage { + List GetFullList(); + List GetFilteredList(DisciplineSearchModel model); + DisciplineViewModel? GetElement(DisciplineSearchModel model); + DisciplineViewModel? Insert(DisciplineBindingModel model); + DisciplineViewModel? Update(DisciplineBindingModel model); + DisciplineViewModel? Delete(DisciplineBindingModel model); } } diff --git a/University/UniversityContracts/StoragesContracts/IExaminationResultStorage.cs b/University/UniversityContracts/StoragesContracts/IExaminationResultStorage.cs index 1090c8c..b96b72a 100644 --- a/University/UniversityContracts/StoragesContracts/IExaminationResultStorage.cs +++ b/University/UniversityContracts/StoragesContracts/IExaminationResultStorage.cs @@ -1,8 +1,16 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.StoragesContracts { public interface IExaminationResultStorage { + List GetFullList(); + List GetFilteredList(ExaminationResultSearchModel model); + ExaminationResultViewModel? GetElement(ExaminationResultSearchModel model); + ExaminationResultViewModel? Insert(ExaminationResultBindingModel model); + ExaminationResultViewModel? Update(ExaminationResultBindingModel model); + ExaminationResultViewModel? Delete(ExaminationResultBindingModel model); } } diff --git a/University/UniversityContracts/StoragesContracts/IReportTypeStorage.cs b/University/UniversityContracts/StoragesContracts/IReportTypeStorage.cs index cb624e8..aae192f 100644 --- a/University/UniversityContracts/StoragesContracts/IReportTypeStorage.cs +++ b/University/UniversityContracts/StoragesContracts/IReportTypeStorage.cs @@ -1,8 +1,16 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.StoragesContracts { public interface IReportTypeStorage { + List GetFullList(); + List GetFilteredList(ReportTypeSearchModel model); + ReportTypeViewModel? GetElement(ReportTypeSearchModel model); + ReportTypeViewModel? Insert(ReportTypeBindingModel model); + ReportTypeViewModel? Update(ReportTypeBindingModel model); + ReportTypeViewModel? Delete(ReportTypeBindingModel model); } } diff --git a/University/UniversityContracts/StoragesContracts/IStatementStorage.cs b/University/UniversityContracts/StoragesContracts/IStatementStorage.cs index e3dc4fd..052af30 100644 --- a/University/UniversityContracts/StoragesContracts/IStatementStorage.cs +++ b/University/UniversityContracts/StoragesContracts/IStatementStorage.cs @@ -1,8 +1,16 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.StoragesContracts { public interface IStatementStorage { + List GetFullList(); + List GetFilteredList(StatementSearchModel model); + StatementViewModel? GetElement(StatementSearchModel model); + StatementViewModel? Insert(StatementBindingModel model); + StatementViewModel? Update(StatementBindingModel model); + StatementViewModel? Delete(StatementBindingModel model); } } diff --git a/University/UniversityContracts/StoragesContracts/IStudentStorage.cs b/University/UniversityContracts/StoragesContracts/IStudentStorage.cs index 0fc67db..ea3bd7e 100644 --- a/University/UniversityContracts/StoragesContracts/IStudentStorage.cs +++ b/University/UniversityContracts/StoragesContracts/IStudentStorage.cs @@ -1,8 +1,16 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.StoragesContracts { public interface IStudentStorage { + List GetFullList(); + List GetFilteredList(StudentSearchModel model); + StudentViewModel? GetElement(StudentSearchModel model); + StudentViewModel? Insert(StudentBindingModel model); + StudentViewModel? Update(StudentBindingModel model); + StudentViewModel? Delete(StudentBindingModel model); } } diff --git a/University/UniversityContracts/ViewModels/ExaminationResultSearchModel.cs b/University/UniversityContracts/ViewModels/ExaminationResultViewModel.cs similarity index 85% rename from University/UniversityContracts/ViewModels/ExaminationResultSearchModel.cs rename to University/UniversityContracts/ViewModels/ExaminationResultViewModel.cs index 498ecaf..379ac90 100644 --- a/University/UniversityContracts/ViewModels/ExaminationResultSearchModel.cs +++ b/University/UniversityContracts/ViewModels/ExaminationResultViewModel.cs @@ -3,7 +3,7 @@ using UniversityDataModels.Models; namespace UniversityContracts.ViewModels { - public class ExaminationResultSearchModel : IExaminationResultModel + public class ExaminationResultViewModel : IExaminationResultModel { public int Id { get; set; } public string ExaminationForm { get; set; } = String.Empty;