changed storage interfaces

This commit is contained in:
MaxKarme 2023-04-02 18:12:33 +04:00
parent 1e7d4a3754
commit 27b7fee2d8
7 changed files with 55 additions and 7 deletions

View File

@ -1,8 +1,16 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.StoragesContracts
{
public interface IActivityStorage
{
List<ActivityViewModel> GetFullList();
List<ActivityViewModel> GetFilteredList(ActivitySearchModel model);
ActivityViewModel? GetElement(ActivitySearchModel model);
ActivityViewModel? Insert(ActivityBindingModel model);
ActivityViewModel? Update(ActivityBindingModel model);
ActivityViewModel? Delete(ActivityBindingModel model);
}
}

View File

@ -1,8 +1,16 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.StoragesContracts
{
public interface IDisciplineStorage
{
List<DisciplineViewModel> GetFullList();
List<DisciplineViewModel> GetFilteredList(DisciplineSearchModel model);
DisciplineViewModel? GetElement(DisciplineSearchModel model);
DisciplineViewModel? Insert(DisciplineBindingModel model);
DisciplineViewModel? Update(DisciplineBindingModel model);
DisciplineViewModel? Delete(DisciplineBindingModel model);
}
}

View File

@ -1,8 +1,16 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.StoragesContracts
{
public interface IExaminationResultStorage
{
List<ExaminationResultViewModel> GetFullList();
List<ExaminationResultViewModel> GetFilteredList(ExaminationResultSearchModel model);
ExaminationResultViewModel? GetElement(ExaminationResultSearchModel model);
ExaminationResultViewModel? Insert(ExaminationResultBindingModel model);
ExaminationResultViewModel? Update(ExaminationResultBindingModel model);
ExaminationResultViewModel? Delete(ExaminationResultBindingModel model);
}
}

View File

@ -1,8 +1,16 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.StoragesContracts
{
public interface IReportTypeStorage
{
List<ReportTypeViewModel> GetFullList();
List<ReportTypeViewModel> GetFilteredList(ReportTypeSearchModel model);
ReportTypeViewModel? GetElement(ReportTypeSearchModel model);
ReportTypeViewModel? Insert(ReportTypeBindingModel model);
ReportTypeViewModel? Update(ReportTypeBindingModel model);
ReportTypeViewModel? Delete(ReportTypeBindingModel model);
}
}

View File

@ -1,8 +1,16 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.StoragesContracts
{
public interface IStatementStorage
{
List<StatementViewModel> GetFullList();
List<StatementViewModel> GetFilteredList(StatementSearchModel model);
StatementViewModel? GetElement(StatementSearchModel model);
StatementViewModel? Insert(StatementBindingModel model);
StatementViewModel? Update(StatementBindingModel model);
StatementViewModel? Delete(StatementBindingModel model);
}
}

View File

@ -1,8 +1,16 @@
using UniversityDataModels.Models;
using UniversityContracts.BindingModels;
using UniversityContracts.SearchModels;
using UniversityContracts.ViewModels;
namespace UniversityContracts.StoragesContracts
{
public interface IStudentStorage
{
List<StudentViewModel> GetFullList();
List<StudentViewModel> GetFilteredList(StudentSearchModel model);
StudentViewModel? GetElement(StudentSearchModel model);
StudentViewModel? Insert(StudentBindingModel model);
StudentViewModel? Update(StudentBindingModel model);
StudentViewModel? Delete(StudentBindingModel model);
}
}

View File

@ -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;