Никита. Создал контракты хранения моделей

This commit is contained in:
Никита Потапов 2024-04-18 00:15:01 +04:00
parent ed6cd3be2e
commit b9e024917a
6 changed files with 64 additions and 1 deletions

View File

@ -7,7 +7,6 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Folder Include="StoragesContracts\" />
<Folder Include="BusinessLogicsContracts\" /> <Folder Include="BusinessLogicsContracts\" />
</ItemGroup> </ItemGroup>

View File

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

View File

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

View File

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

View File

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