реализованы интерфейсы хранилища в контрактах
This commit is contained in:
parent
0ff71496ae
commit
88df65662c
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user