From 71b43ca2eb0e9e1d5c6b5638177a6194e520e890 Mon Sep 17 00:00:00 2001 From: gg12 darfren Date: Tue, 23 Apr 2024 20:56:59 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StoragesContracts/IGuidanceStorage.cs | 21 +++++++++++++++++++ .../StoragesContracts/IPharmacistStorage.cs | 14 ++++++------- .../StoragesContracts/IServiceStorage.cs | 11 +++++++++- 3 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 VetClinic/VetClinicContracts/StoragesContracts/IGuidanceStorage.cs diff --git a/VetClinic/VetClinicContracts/StoragesContracts/IGuidanceStorage.cs b/VetClinic/VetClinicContracts/StoragesContracts/IGuidanceStorage.cs new file mode 100644 index 0000000..b3d7c3e --- /dev/null +++ b/VetClinic/VetClinicContracts/StoragesContracts/IGuidanceStorage.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VetClinicContracts.BindingModels; +using VetClinicContracts.SearchModels; +using VetClinicContracts.ViewModels; + +namespace VetClinicContracts.StoragesContracts +{ + public interface IGuidanceStorage + { + List GetFullList(); + List GetFilteredList(GuidanceSearchModel model); + GuidanceViewModel? GetElement(GuidanceSearchModel model); + GuidanceViewModel? Insert(GuidanceBindingModel model); + GuidanceViewModel? Update(GuidanceBindingModel model); + GuidanceViewModel? Delete(GuidanceBindingModel model); + } +} diff --git a/VetClinic/VetClinicContracts/StoragesContracts/IPharmacistStorage.cs b/VetClinic/VetClinicContracts/StoragesContracts/IPharmacistStorage.cs index b3d7c3e..49bfc6f 100644 --- a/VetClinic/VetClinicContracts/StoragesContracts/IPharmacistStorage.cs +++ b/VetClinic/VetClinicContracts/StoragesContracts/IPharmacistStorage.cs @@ -9,13 +9,13 @@ using VetClinicContracts.ViewModels; namespace VetClinicContracts.StoragesContracts { - public interface IGuidanceStorage + public interface IPharmacistStorage { - List GetFullList(); - List GetFilteredList(GuidanceSearchModel model); - GuidanceViewModel? GetElement(GuidanceSearchModel model); - GuidanceViewModel? Insert(GuidanceBindingModel model); - GuidanceViewModel? Update(GuidanceBindingModel model); - GuidanceViewModel? Delete(GuidanceBindingModel model); + List GetFullList(); + List GetFilteredList(PharmacistSearchModel model); + PharmacistViewModel? GetElement(PharmacistSearchModel model); + PharmacistViewModel? Insert(PharmacistBindingModel model); + PharmacistViewModel? Update(PharmacistBindingModel model); + PharmacistViewModel? Delete(PharmacistBindingModel model); } } diff --git a/VetClinic/VetClinicContracts/StoragesContracts/IServiceStorage.cs b/VetClinic/VetClinicContracts/StoragesContracts/IServiceStorage.cs index 459b89d..f94ac6f 100644 --- a/VetClinic/VetClinicContracts/StoragesContracts/IServiceStorage.cs +++ b/VetClinic/VetClinicContracts/StoragesContracts/IServiceStorage.cs @@ -3,10 +3,19 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using VetClinicContracts.BindingModels; +using VetClinicContracts.SearchModels; +using VetClinicContracts.ViewModels; namespace VetClinicContracts.StoragesContracts { - internal interface IServiceStorage + public interface IServiceStorage { + List GetFullList(); + List GetFilteredList(ServiceSearchModel model); + ServiceViewModel? GetElement(ServiceSearchModel model); + ServiceViewModel? Insert(ServiceBindingModel model); + ServiceViewModel? Update(ServiceBindingModel model); + ServiceViewModel? Delete(ServiceBindingModel model); } }