add logic contracts

This commit is contained in:
MaxKarme 2023-04-04 22:34:54 +04:00
parent ebfba932d8
commit 0e7052eb80
6 changed files with 48 additions and 6 deletions

View File

@ -1,8 +1,15 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.BuisnessLogicContracts
{
public interface IActivityLogic
{
List<ActivityViewModel>? ReadList(ActivitySearchModel? model);
ActivityViewModel? ReadElement(ActivitySearchModel model);
bool Create(ActivityBindingModel model);
bool Update(ActivityBindingModel model);
bool Delete(ActivityBindingModel model);
}
}

View File

@ -1,9 +1,16 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.BuisnessLogicContracts
{
public interface IDisciplineLogic
{
List<DisciplineViewModel>? ReadList(DisciplineSearchModel? model);
DisciplineViewModel? ReadElement(DisciplineSearchModel model);
bool Create(DisciplineBindingModel model);
bool Update(DisciplineBindingModel model);
bool Delete(DisciplineBindingModel model);
}
}

View File

@ -1,8 +1,15 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.BuisnessLogicContracts
{
public interface IExaminationResultLogic
{
List<ExaminationResultViewModel>? ReadList(ExaminationResultSearchModel? model);
ExaminationResultViewModel? ReadElement(ExaminationResultSearchModel model);
bool Create(ExaminationResultBindingModel model);
bool Update(ExaminationResultBindingModel model);
bool Delete(ExaminationResultBindingModel model);
}
}

View File

@ -1,9 +1,16 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.BuisnessLogicContracts
{
public interface IReportTypeLogic
{
List<ReportTypeViewModel>? ReadList(ReportTypeSearchModel? model);
ReportTypeViewModel? ReadElement(ReportTypeSearchModel model);
bool Create(ReportTypeBindingModel model);
bool Update(ReportTypeBindingModel model);
bool Delete(ReportTypeBindingModel model);
}
}

View File

@ -1,8 +1,15 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.BuisnessLogicContracts
{
public interface IStatementLogic
{
List<StatementViewModel>? ReadList(StatementSearchModel? model);
StatementViewModel? ReadElement(StatementSearchModel model);
bool Create(StatementBindingModel model);
bool Update(StatementBindingModel model);
bool Delete(StatementBindingModel model);
}
}

View File

@ -1,8 +1,15 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.BuisnessLogicContracts
{
public interface IStudentLogic
{
List<StudentViewModel>? ReadList(StudentSearchModel? model);
StudentViewModel? ReadElement(StudentSearchModel model);
bool Create(StudentBindingModel model);
bool Update(StudentBindingModel model);
bool Delete(StudentBindingModel model);
}
}