changed storage interfaces
This commit is contained in:
parent
1e7d4a3754
commit
27b7fee2d8
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user