From a8899463d7cf924bf98d5a1b6072a791434d35f9 Mon Sep 17 00:00:00 2001 From: AnnZhimol Date: Sat, 1 Apr 2023 18:42:08 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B0=20=D1=81=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=B0=D0=BA=D1=82=D0=B0=D0=BC?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hotel/Hotel.sln | 6 ++++++ .../BindingModels/ConferenceBindingModel.cs | 15 +++++++++++++++ .../BindingModels/MealPlanBindingModel.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IConferenceLogic.cs | 6 ++++++ Hotel/HotelContracts/HotelContracts.csproj | 13 +++++++++++++ .../SearchModels/ConferenceSearchModel.cs | 6 ++++++ .../StoragesContracts/IConferenceStorage.cs | 6 ++++++ .../ViewModels/ConferenceViewModel.cs | 6 ++++++ Hotel/HotelDataModels/Models/IConferenceModel.cs | 1 + Hotel/HotelDataModels/Models/IMealPlanModel.cs | 1 + Hotel/HotelDataModels/Models/IMemberModel.cs | 2 ++ 11 files changed, 77 insertions(+) create mode 100644 Hotel/HotelContracts/BindingModels/ConferenceBindingModel.cs create mode 100644 Hotel/HotelContracts/BindingModels/MealPlanBindingModel.cs create mode 100644 Hotel/HotelContracts/BusinessLogicsContracts/IConferenceLogic.cs create mode 100644 Hotel/HotelContracts/HotelContracts.csproj create mode 100644 Hotel/HotelContracts/SearchModels/ConferenceSearchModel.cs create mode 100644 Hotel/HotelContracts/StoragesContracts/IConferenceStorage.cs create mode 100644 Hotel/HotelContracts/ViewModels/ConferenceViewModel.cs diff --git a/Hotel/Hotel.sln b/Hotel/Hotel.sln index 4814a5e..843b506 100644 --- a/Hotel/Hotel.sln +++ b/Hotel/Hotel.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelView", "HotelView\Hote EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelDataModels", "HotelDataModels\HotelDataModels.csproj", "{08223741-597B-416D-8357-49E61B9C8AC0}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelContracts", "HotelContracts\HotelContracts.csproj", "{234B3526-A74E-43D2-9333-E74B4FF9A356}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +23,10 @@ Global {08223741-597B-416D-8357-49E61B9C8AC0}.Debug|Any CPU.Build.0 = Debug|Any CPU {08223741-597B-416D-8357-49E61B9C8AC0}.Release|Any CPU.ActiveCfg = Release|Any CPU {08223741-597B-416D-8357-49E61B9C8AC0}.Release|Any CPU.Build.0 = Release|Any CPU + {234B3526-A74E-43D2-9333-E74B4FF9A356}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {234B3526-A74E-43D2-9333-E74B4FF9A356}.Debug|Any CPU.Build.0 = Debug|Any CPU + {234B3526-A74E-43D2-9333-E74B4FF9A356}.Release|Any CPU.ActiveCfg = Release|Any CPU + {234B3526-A74E-43D2-9333-E74B4FF9A356}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Hotel/HotelContracts/BindingModels/ConferenceBindingModel.cs b/Hotel/HotelContracts/BindingModels/ConferenceBindingModel.cs new file mode 100644 index 0000000..a84e8e4 --- /dev/null +++ b/Hotel/HotelContracts/BindingModels/ConferenceBindingModel.cs @@ -0,0 +1,15 @@ +using HotelDataModels.Models; + +namespace HotelContracts.BindingModels +{ + public class ConferenceBindingModel : IConferenceModel + { + public string ConferenceName { get; set; } = string.Empty; + + public DateTime StartDate { get; set; } = DateTime.Now; + + public int Id { get; set; } + + public int OrganiserId { get; set; } + } +} diff --git a/Hotel/HotelContracts/BindingModels/MealPlanBindingModel.cs b/Hotel/HotelContracts/BindingModels/MealPlanBindingModel.cs new file mode 100644 index 0000000..3bb29e6 --- /dev/null +++ b/Hotel/HotelContracts/BindingModels/MealPlanBindingModel.cs @@ -0,0 +1,15 @@ +using HotelDataModels.Models; + +namespace HotelContracts.BindingModels +{ + public class MealPlanBindingModel : IMealPlanModel + { + public string MealPlanName { get; set; } = string.Empty; + + public double MealPlanPrice { get; set; } + + public int OrganiserId { get; set; } + + public int Id { get; set; } + } +} diff --git a/Hotel/HotelContracts/BusinessLogicsContracts/IConferenceLogic.cs b/Hotel/HotelContracts/BusinessLogicsContracts/IConferenceLogic.cs new file mode 100644 index 0000000..ddf7543 --- /dev/null +++ b/Hotel/HotelContracts/BusinessLogicsContracts/IConferenceLogic.cs @@ -0,0 +1,6 @@ +namespace HotelContracts.BusinessLogicsContracts +{ + public interface IConferenceLogic + { + } +} diff --git a/Hotel/HotelContracts/HotelContracts.csproj b/Hotel/HotelContracts/HotelContracts.csproj new file mode 100644 index 0000000..98739e9 --- /dev/null +++ b/Hotel/HotelContracts/HotelContracts.csproj @@ -0,0 +1,13 @@ + + + + net6.0 + enable + enable + + + + + + + diff --git a/Hotel/HotelContracts/SearchModels/ConferenceSearchModel.cs b/Hotel/HotelContracts/SearchModels/ConferenceSearchModel.cs new file mode 100644 index 0000000..cac6bd8 --- /dev/null +++ b/Hotel/HotelContracts/SearchModels/ConferenceSearchModel.cs @@ -0,0 +1,6 @@ +namespace HotelContracts.SearchModels +{ + public class ConferenceSearchModel + { + } +} diff --git a/Hotel/HotelContracts/StoragesContracts/IConferenceStorage.cs b/Hotel/HotelContracts/StoragesContracts/IConferenceStorage.cs new file mode 100644 index 0000000..7fea1e9 --- /dev/null +++ b/Hotel/HotelContracts/StoragesContracts/IConferenceStorage.cs @@ -0,0 +1,6 @@ +namespace HotelContracts.StoragesContracts +{ + public interface IConferenceStorage + { + } +} diff --git a/Hotel/HotelContracts/ViewModels/ConferenceViewModel.cs b/Hotel/HotelContracts/ViewModels/ConferenceViewModel.cs new file mode 100644 index 0000000..c8ea717 --- /dev/null +++ b/Hotel/HotelContracts/ViewModels/ConferenceViewModel.cs @@ -0,0 +1,6 @@ +namespace HotelContracts.ViewModels +{ + public class ConferenceViewModel + { + } +} diff --git a/Hotel/HotelDataModels/Models/IConferenceModel.cs b/Hotel/HotelDataModels/Models/IConferenceModel.cs index d88662d..d1ef09d 100644 --- a/Hotel/HotelDataModels/Models/IConferenceModel.cs +++ b/Hotel/HotelDataModels/Models/IConferenceModel.cs @@ -4,5 +4,6 @@ { string ConferenceName { get; } DateTime StartDate { get; } + int OrganiserId { get; } } } diff --git a/Hotel/HotelDataModels/Models/IMealPlanModel.cs b/Hotel/HotelDataModels/Models/IMealPlanModel.cs index 2356b02..9821716 100644 --- a/Hotel/HotelDataModels/Models/IMealPlanModel.cs +++ b/Hotel/HotelDataModels/Models/IMealPlanModel.cs @@ -4,5 +4,6 @@ { string MealPlanName { get; } double MealPlanPrice { get; } + int OrganiserId { get; } } } diff --git a/Hotel/HotelDataModels/Models/IMemberModel.cs b/Hotel/HotelDataModels/Models/IMemberModel.cs index 5fedf49..c1e5b2e 100644 --- a/Hotel/HotelDataModels/Models/IMemberModel.cs +++ b/Hotel/HotelDataModels/Models/IMemberModel.cs @@ -4,5 +4,7 @@ { string MemberFIO { get; } string Citizenship { get; } + + int OrganiserId { get; } } }