Add binding models
This commit is contained in:
parent
0c473d4484
commit
9ad3c6c139
10
Hotel/HotelContracts/BindingModels/CleaningBindingModel.cs
Normal file
10
Hotel/HotelContracts/BindingModels/CleaningBindingModel.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using HotelDataModels.Models;
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class CleaningBindingModel : ICleaning
|
||||
{
|
||||
public int Id { get; }
|
||||
public DateTime Date { get; }
|
||||
public int RoomId { get; }
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
using HotelDataModels.Models;
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class CleaningInstrumentsBindingModel : ICleaningInstruments
|
||||
{
|
||||
public int Id { get; }
|
||||
public string Type { get; }
|
||||
}
|
11
Hotel/HotelContracts/BindingModels/GuestBindingModel.cs
Normal file
11
Hotel/HotelContracts/BindingModels/GuestBindingModel.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using HotelDataModels.Models;
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class GuestBindingModel : IGuest
|
||||
{
|
||||
public int Id { get; }
|
||||
public string Name { get; }
|
||||
public string SecondName { get; }
|
||||
public string LastName { get; }
|
||||
}
|
13
Hotel/HotelContracts/BindingModels/MaitreBindingModel.cs
Normal file
13
Hotel/HotelContracts/BindingModels/MaitreBindingModel.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using HotelDataModels.Models;
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class MaitreBindingModel : IMaitre
|
||||
{
|
||||
public int Id { get; }
|
||||
public string Name { get; }
|
||||
public string SecondName { get; }
|
||||
public string LastName { get; }
|
||||
public string Login { get; }
|
||||
public string Password { get; }
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using HotelDataModels.Models;
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class ReservationBindingModel : IReservation
|
||||
{
|
||||
public int Id { get; }
|
||||
public DateTime StartDate { get; }
|
||||
public DateTime EndDate { get; }
|
||||
public int GuestId { get; }
|
||||
public int MaitreId { get; }
|
||||
}
|
10
Hotel/HotelContracts/BindingModels/RoomBindingModel.cs
Normal file
10
Hotel/HotelContracts/BindingModels/RoomBindingModel.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using HotelDataModels.Models;
|
||||
|
||||
namespace HotelContracts.BindingModels;
|
||||
|
||||
public class RoomBindingModel : IRoom
|
||||
{
|
||||
public int Id { get; }
|
||||
public string Type { get; }
|
||||
public int Cost { get; }
|
||||
}
|
@ -6,4 +6,15 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BusinessLogicsContracts" />
|
||||
<Folder Include="SearchModels" />
|
||||
<Folder Include="StoragesContracts" />
|
||||
<Folder Include="ViewModels" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\HotelDataModels\HotelDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user