Add search models

This commit is contained in:
Viltskaa 2023-04-06 18:14:53 +04:00
parent c4b5f00cb8
commit b70c7287e1
7 changed files with 54 additions and 1 deletions

View File

@ -7,7 +7,6 @@
</PropertyGroup>
<ItemGroup>
<Folder Include="SearchModels" />
<Folder Include="StoragesContracts" />
</ItemGroup>

View File

@ -0,0 +1,7 @@
namespace HotelContracts.SearchModels;
public class CleaningInstrumentsSearchModel
{
public int? Id { get; set; }
public string? Type { get; set; }
}

View File

@ -0,0 +1,9 @@
namespace HotelContracts.SearchModels;
public class CleaningSearchModel
{
public int? Id { get; set; }
public DateTime? From { get; set; }
public DateTime? To { get; set; }
public int? RoomId { get; set; }
}

View File

@ -0,0 +1,9 @@
namespace HotelContracts.SearchModels;
public class GuestSearchModel
{
public int? Id { get; set; }
public string? Name { get; set; }
public string? SecondName { get; set; }
public string? LastName { get; set; }
}

View File

@ -0,0 +1,11 @@
namespace HotelContracts.SearchModels;
public class MaitreSearchModel
{
public int? Id { get; set; }
public string? Name { get; set; }
public string? SecondName { get; set; }
public string? LastName { get; set; }
public string? Login { get; set; }
public string? Password { get; set; }
}

View File

@ -0,0 +1,10 @@
namespace HotelContracts.SearchModels;
public class ReservationSearchModel
{
public int? Id { get; set; }
public DateTime? From { get; set; }
public DateTime? To { get; set; }
public int? GuestId { get; set; }
public int? MaitreId { get; set; }
}

View File

@ -0,0 +1,8 @@
namespace HotelContracts.SearchModels;
public class RoomSearchModel
{
public int? Id { get; set; }
public double? Cost { get; set; }
public string? Type { get; set; }
}