реализованы интерфейсы хранилища в контрактах

This commit is contained in:
Елена Бакальская 2024-04-24 18:33:34 +04:00
parent 0ff71496ae
commit 88df65662c
4 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,21 @@
using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.StoragesContracts
{
public interface IMedicamentStorage
{
List<MedicamentView> GetFullList();
List<MedicamentView> GetFilteredList(MedicamentSearchModel model);
MedicamentView? GetElement(MedicamentSearchModel model);
MedicamentView? Insert(MedicamentBindingModel model);
MedicamentView? Update(MedicamentBindingModel model);
MedicamentView? Delete(MedicamentBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.StoragesContracts
{
public interface IProcedureStorage
{
List<ProcedureView> GetFullList();
List<ProcedureView> GetFilteredList(ProcedureSearchModel model);
ProcedureView? GetElement(ProcedureSearchModel model);
ProcedureView? Insert(ProcedureBindingModel model);
ProcedureView? Update(ProcedureBindingModel model);
ProcedureView? Delete(ProcedureBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.StoragesContracts
{
public interface IRecipeStorage
{
List<RecipeView> GetFullList();
List<RecipeView> GetFilteredList(RecipeSearchModel model);
RecipeView? GetElement(RecipeSearchModel model);
RecipeView? Insert(RecipeBindingModel model);
RecipeView? Update(RecipeBindingModel model);
RecipeView? Delete(RecipeBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.StoragesContracts
{
public interface ISuretorStorage
{
List<SuretorView> GetFullList();
List<SuretorView> GetFilteredList(SuretorSearchModel model);
SuretorView? GetElement(SuretorSearchModel model);
SuretorView? Insert(SuretorBindingModel model);
SuretorView? Update(SuretorBindingModel model);
SuretorView? Delete(SuretorBindingModel model);
}
}