From a0b135e995bb3333d7d46c07173cc0ce29bc7b04 Mon Sep 17 00:00:00 2001 From: AnnZhimol Date: Sat, 1 Apr 2023 19:42:24 +0400 Subject: [PATCH] StoragesContracts --- .../StoragesContracts/IConferenceStorage.cs | 17 ++++++++++++++- .../StoragesContracts/IMealPlanStorage.cs | 21 +++++++++++++++++++ .../StoragesContracts/IMemberStorage.cs | 21 +++++++++++++++++++ .../StoragesContracts/IOrganiserStorage.cs | 21 +++++++++++++++++++ 4 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 Hotel/HotelContracts/StoragesContracts/IMealPlanStorage.cs create mode 100644 Hotel/HotelContracts/StoragesContracts/IMemberStorage.cs create mode 100644 Hotel/HotelContracts/StoragesContracts/IOrganiserStorage.cs diff --git a/Hotel/HotelContracts/StoragesContracts/IConferenceStorage.cs b/Hotel/HotelContracts/StoragesContracts/IConferenceStorage.cs index 7fea1e9..cf9a8e9 100644 --- a/Hotel/HotelContracts/StoragesContracts/IConferenceStorage.cs +++ b/Hotel/HotelContracts/StoragesContracts/IConferenceStorage.cs @@ -1,6 +1,21 @@ -namespace HotelContracts.StoragesContracts +using HotelContracts.BindingModels; +using HotelContracts.SearchModels; +using HotelContracts.ViewModels; + +namespace HotelContracts.StoragesContracts { public interface IConferenceStorage { + List GetFullList(); + + List GetFilteredList(ConferenceSearchModel model); + + ConferenceViewModel? GetElement(ConferenceSearchModel model); + + ConferenceViewModel? Insert(ConferenceBindingModel model); + + ConferenceViewModel? Update(ConferenceBindingModel model); + + ConferenceViewModel? Delete(ConferenceBindingModel model); } } diff --git a/Hotel/HotelContracts/StoragesContracts/IMealPlanStorage.cs b/Hotel/HotelContracts/StoragesContracts/IMealPlanStorage.cs new file mode 100644 index 0000000..46c0e58 --- /dev/null +++ b/Hotel/HotelContracts/StoragesContracts/IMealPlanStorage.cs @@ -0,0 +1,21 @@ +using HotelContracts.BindingModels; +using HotelContracts.SearchModels; +using HotelContracts.ViewModels; + +namespace HotelContracts.StoragesContracts +{ + public interface IMealPlanStorage + { + List GetFullList(); + + List GetFilteredList(MealPlanSearchModel model); + + MealPlanViewModel? GetElement(MealPlanSearchModel model); + + MealPlanViewModel? Insert(MealPlanBindingModel model); + + MealPlanViewModel? Update(MealPlanBindingModel model); + + MealPlanViewModel? Delete(MealPlanBindingModel model); + } +} diff --git a/Hotel/HotelContracts/StoragesContracts/IMemberStorage.cs b/Hotel/HotelContracts/StoragesContracts/IMemberStorage.cs new file mode 100644 index 0000000..cc0632a --- /dev/null +++ b/Hotel/HotelContracts/StoragesContracts/IMemberStorage.cs @@ -0,0 +1,21 @@ +using HotelContracts.BindingModels; +using HotelContracts.SearchModels; +using HotelContracts.ViewModels; + +namespace HotelContracts.StoragesContracts +{ + public interface IMemberStorage + { + List GetFullList(); + + List GetFilteredList(MemberSearchModel model); + + MemberViewModel? GetElement(MemberSearchModel model); + + MemberViewModel? Insert(MemberBindingModel model); + + MemberViewModel? Update(MemberBindingModel model); + + MemberViewModel? Delete(MemberBindingModel model); + } +} diff --git a/Hotel/HotelContracts/StoragesContracts/IOrganiserStorage.cs b/Hotel/HotelContracts/StoragesContracts/IOrganiserStorage.cs new file mode 100644 index 0000000..3d0bf59 --- /dev/null +++ b/Hotel/HotelContracts/StoragesContracts/IOrganiserStorage.cs @@ -0,0 +1,21 @@ +using HotelContracts.BindingModels; +using HotelContracts.SearchModels; +using HotelContracts.ViewModels; + +namespace HotelContracts.StoragesContracts +{ + public interface IOrganiserStorage + { + List GetFullList(); + + List GetFilteredList(OrganiserSearchModel model); + + OrganiserViewModel? GetElement(OrganiserSearchModel model); + + OrganiserViewModel? Insert(OrganiserBindingModel model); + + OrganiserViewModel? Update(OrganiserBindingModel model); + + OrganiserViewModel? Delete(OrganiserBindingModel model); + } +}