Add binding models

This commit is contained in:
Viltskaa 2023-04-06 17:44:51 +04:00
parent 0c473d4484
commit 9ad3c6c139
7 changed files with 76 additions and 0 deletions

View 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; }
}

View File

@ -0,0 +1,9 @@
using HotelDataModels.Models;
namespace HotelContracts.BindingModels;
public class CleaningInstrumentsBindingModel : ICleaningInstruments
{
public int Id { get; }
public string Type { get; }
}

View 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; }
}

View 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; }
}

View File

@ -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; }
}

View 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; }
}

View File

@ -6,4 +6,15 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<Folder Include="BusinessLogicsContracts" />
<Folder Include="SearchModels" />
<Folder Include="StoragesContracts" />
<Folder Include="ViewModels" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\HotelDataModels\HotelDataModels.csproj" />
</ItemGroup>
</Project> </Project>