From 0e7052eb8089eea3e9deefb906e074bac69ece4d Mon Sep 17 00:00:00 2001 From: MaxKarme <91691525+MaxKarme@users.noreply.github.com> Date: Tue, 4 Apr 2023 22:34:54 +0400 Subject: [PATCH] add logic contracts --- .../BuisnessLogicContracts/IActivityLogic.cs | 9 ++++++++- .../BuisnessLogicContracts/IDisciplineLogic.cs | 9 ++++++++- .../BuisnessLogicContracts/IExaminationResultLogic.cs | 9 ++++++++- .../BuisnessLogicContracts/IReportTypeLogic.cs | 9 ++++++++- .../BuisnessLogicContracts/IStatementLogic.cs | 9 ++++++++- .../BuisnessLogicContracts/IStudentLogic.cs | 9 ++++++++- 6 files changed, 48 insertions(+), 6 deletions(-) diff --git a/University/UniversityContracts/BuisnessLogicContracts/IActivityLogic.cs b/University/UniversityContracts/BuisnessLogicContracts/IActivityLogic.cs index 8c663cd..586d514 100644 --- a/University/UniversityContracts/BuisnessLogicContracts/IActivityLogic.cs +++ b/University/UniversityContracts/BuisnessLogicContracts/IActivityLogic.cs @@ -1,8 +1,15 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.BuisnessLogicContracts { public interface IActivityLogic { + List? ReadList(ActivitySearchModel? model); + ActivityViewModel? ReadElement(ActivitySearchModel model); + bool Create(ActivityBindingModel model); + bool Update(ActivityBindingModel model); + bool Delete(ActivityBindingModel model); } } diff --git a/University/UniversityContracts/BuisnessLogicContracts/IDisciplineLogic.cs b/University/UniversityContracts/BuisnessLogicContracts/IDisciplineLogic.cs index 360c2fd..c5d4ab8 100644 --- a/University/UniversityContracts/BuisnessLogicContracts/IDisciplineLogic.cs +++ b/University/UniversityContracts/BuisnessLogicContracts/IDisciplineLogic.cs @@ -1,9 +1,16 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.BuisnessLogicContracts { public interface IDisciplineLogic { + List? ReadList(DisciplineSearchModel? model); + DisciplineViewModel? ReadElement(DisciplineSearchModel model); + bool Create(DisciplineBindingModel model); + bool Update(DisciplineBindingModel model); + bool Delete(DisciplineBindingModel model); } } diff --git a/University/UniversityContracts/BuisnessLogicContracts/IExaminationResultLogic.cs b/University/UniversityContracts/BuisnessLogicContracts/IExaminationResultLogic.cs index e83817e..ba139b7 100644 --- a/University/UniversityContracts/BuisnessLogicContracts/IExaminationResultLogic.cs +++ b/University/UniversityContracts/BuisnessLogicContracts/IExaminationResultLogic.cs @@ -1,8 +1,15 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.BuisnessLogicContracts { public interface IExaminationResultLogic { + List? ReadList(ExaminationResultSearchModel? model); + ExaminationResultViewModel? ReadElement(ExaminationResultSearchModel model); + bool Create(ExaminationResultBindingModel model); + bool Update(ExaminationResultBindingModel model); + bool Delete(ExaminationResultBindingModel model); } } diff --git a/University/UniversityContracts/BuisnessLogicContracts/IReportTypeLogic.cs b/University/UniversityContracts/BuisnessLogicContracts/IReportTypeLogic.cs index 660fef4..4c8d7c8 100644 --- a/University/UniversityContracts/BuisnessLogicContracts/IReportTypeLogic.cs +++ b/University/UniversityContracts/BuisnessLogicContracts/IReportTypeLogic.cs @@ -1,9 +1,16 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.BuisnessLogicContracts { public interface IReportTypeLogic { + List? ReadList(ReportTypeSearchModel? model); + ReportTypeViewModel? ReadElement(ReportTypeSearchModel model); + bool Create(ReportTypeBindingModel model); + bool Update(ReportTypeBindingModel model); + bool Delete(ReportTypeBindingModel model); } } diff --git a/University/UniversityContracts/BuisnessLogicContracts/IStatementLogic.cs b/University/UniversityContracts/BuisnessLogicContracts/IStatementLogic.cs index 94e7628..8827f95 100644 --- a/University/UniversityContracts/BuisnessLogicContracts/IStatementLogic.cs +++ b/University/UniversityContracts/BuisnessLogicContracts/IStatementLogic.cs @@ -1,8 +1,15 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.BuisnessLogicContracts { public interface IStatementLogic { + List? ReadList(StatementSearchModel? model); + StatementViewModel? ReadElement(StatementSearchModel model); + bool Create(StatementBindingModel model); + bool Update(StatementBindingModel model); + bool Delete(StatementBindingModel model); } } diff --git a/University/UniversityContracts/BuisnessLogicContracts/IStudentLogic.cs b/University/UniversityContracts/BuisnessLogicContracts/IStudentLogic.cs index b103ef8..24b56be 100644 --- a/University/UniversityContracts/BuisnessLogicContracts/IStudentLogic.cs +++ b/University/UniversityContracts/BuisnessLogicContracts/IStudentLogic.cs @@ -1,8 +1,15 @@ -using UniversityDataModels.Models; +using UniversityContracts.BindingModels; +using UniversityContracts.SearchModels; +using UniversityContracts.ViewModels; namespace UniversityContracts.BuisnessLogicContracts { public interface IStudentLogic { + List? ReadList(StudentSearchModel? model); + StudentViewModel? ReadElement(StudentSearchModel model); + bool Create(StudentBindingModel model); + bool Update(StudentBindingModel model); + bool Delete(StudentBindingModel model); } }