Никита. Создал контракты хранения моделей
This commit is contained in:
parent
ed6cd3be2e
commit
b9e024917a
@ -7,7 +7,6 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="StoragesContracts\" />
|
||||
<Folder Include="BusinessLogicsContracts\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
@ -0,0 +1,16 @@
|
||||
using PolyclinicContracts.BindingModels;
|
||||
using PolyclinicContracts.SearchModels;
|
||||
using PolyclinicContracts.ViewModels;
|
||||
|
||||
namespace PolyclinicContracts.StoragesContracts
|
||||
{
|
||||
public interface ICourseStorage
|
||||
{
|
||||
List<CourseViewModel> GetFullList();
|
||||
List<CourseViewModel> GetFilteredList(CourseSearchModel model);
|
||||
CourseViewModel? GetElement(CourseSearchModel model);
|
||||
CourseViewModel? Insert(CourseBindingModel model);
|
||||
CourseViewModel? Update(CourseBindingModel model);
|
||||
CourseViewModel? Delete(CourseBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using PolyclinicContracts.BindingModels;
|
||||
using PolyclinicContracts.SearchModels;
|
||||
using PolyclinicContracts.ViewModels;
|
||||
|
||||
namespace PolyclinicContracts.StoragesContracts
|
||||
{
|
||||
public interface IDiagnosisStorage
|
||||
{
|
||||
List<DiagnosisViewModel> GetFullList();
|
||||
List<DiagnosisViewModel> GetFilteredList(DiagnosisSearchModel model);
|
||||
DiagnosisViewModel? GetElement(DiagnosisSearchModel model);
|
||||
DiagnosisViewModel? Insert(DiagnosisBindingModel model);
|
||||
DiagnosisViewModel? Update(DiagnosisBindingModel model);
|
||||
DiagnosisViewModel? Delete(DiagnosisBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using PolyclinicContracts.BindingModels;
|
||||
using PolyclinicContracts.SearchModels;
|
||||
using PolyclinicContracts.ViewModels;
|
||||
|
||||
namespace PolyclinicContracts.StoragesContracts
|
||||
{
|
||||
public interface IExecutorStorage
|
||||
{
|
||||
List<ExecutorViewModel> GetFullList();
|
||||
List<ExecutorViewModel> GetFilteredList(ExecutorSearchModel model);
|
||||
ExecutorViewModel? GetElement(ExecutorSearchModel model);
|
||||
ExecutorViewModel? Insert(ExecutorBindingModel model);
|
||||
ExecutorViewModel? Update(ExecutorBindingModel model);
|
||||
ExecutorViewModel? Delete(ExecutorBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using PolyclinicContracts.BindingModels;
|
||||
using PolyclinicContracts.SearchModels;
|
||||
using PolyclinicContracts.ViewModels;
|
||||
|
||||
namespace PolyclinicContracts.StoragesContracts
|
||||
{
|
||||
public interface ISymptomStorage
|
||||
{
|
||||
List<SymptomViewModel> GetFullList();
|
||||
List<SymptomViewModel> GetFilteredList(SymptomSearchModel model);
|
||||
SymptomViewModel? GetElement(SymptomSearchModel model);
|
||||
SymptomViewModel? Insert(SymptomBindingModel model);
|
||||
SymptomViewModel? Update(SymptomBindingModel model);
|
||||
SymptomViewModel? Delete(SymptomBindingModel model);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user