Создание проекта с контрактами
This commit is contained in:
parent
53c8398e12
commit
a8899463d7
@ -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
|
||||
|
15
Hotel/HotelContracts/BindingModels/ConferenceBindingModel.cs
Normal file
15
Hotel/HotelContracts/BindingModels/ConferenceBindingModel.cs
Normal file
@ -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; }
|
||||
}
|
||||
}
|
15
Hotel/HotelContracts/BindingModels/MealPlanBindingModel.cs
Normal file
15
Hotel/HotelContracts/BindingModels/MealPlanBindingModel.cs
Normal file
@ -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; }
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
namespace HotelContracts.BusinessLogicsContracts
|
||||
{
|
||||
public interface IConferenceLogic
|
||||
{
|
||||
}
|
||||
}
|
13
Hotel/HotelContracts/HotelContracts.csproj
Normal file
13
Hotel/HotelContracts/HotelContracts.csproj
Normal file
@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\HotelDataModels\HotelDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,6 @@
|
||||
namespace HotelContracts.SearchModels
|
||||
{
|
||||
public class ConferenceSearchModel
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
namespace HotelContracts.StoragesContracts
|
||||
{
|
||||
public interface IConferenceStorage
|
||||
{
|
||||
}
|
||||
}
|
6
Hotel/HotelContracts/ViewModels/ConferenceViewModel.cs
Normal file
6
Hotel/HotelContracts/ViewModels/ConferenceViewModel.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace HotelContracts.ViewModels
|
||||
{
|
||||
public class ConferenceViewModel
|
||||
{
|
||||
}
|
||||
}
|
@ -4,5 +4,6 @@
|
||||
{
|
||||
string ConferenceName { get; }
|
||||
DateTime StartDate { get; }
|
||||
int OrganiserId { get; }
|
||||
}
|
||||
}
|
||||
|
@ -4,5 +4,6 @@
|
||||
{
|
||||
string MealPlanName { get; }
|
||||
double MealPlanPrice { get; }
|
||||
int OrganiserId { get; }
|
||||
}
|
||||
}
|
||||
|
@ -4,5 +4,7 @@
|
||||
{
|
||||
string MemberFIO { get; }
|
||||
string Citizenship { get; }
|
||||
|
||||
int OrganiserId { get; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user