diff --git a/Hotel/HotelContracts/HotelContracts.csproj b/Hotel/HotelContracts/HotelContracts.csproj index 4bb5c38..bf0e0ba 100644 --- a/Hotel/HotelContracts/HotelContracts.csproj +++ b/Hotel/HotelContracts/HotelContracts.csproj @@ -7,10 +7,8 @@ - - diff --git a/Hotel/HotelContracts/ViewModels/CleaningInstrumentsViewModel.cs b/Hotel/HotelContracts/ViewModels/CleaningInstrumentsViewModel.cs new file mode 100644 index 0000000..9bf3bde --- /dev/null +++ b/Hotel/HotelContracts/ViewModels/CleaningInstrumentsViewModel.cs @@ -0,0 +1,9 @@ +using HotelDataModels.Models; + +namespace HotelContracts.ViewModels; + +public class CleaningInstrumentsViewModel : ICleaningInstrumentsModel +{ + public int Id { get; set; } + public string Type { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/Hotel/HotelContracts/ViewModels/CleaningViewModel.cs b/Hotel/HotelContracts/ViewModels/CleaningViewModel.cs new file mode 100644 index 0000000..2ae4c0d --- /dev/null +++ b/Hotel/HotelContracts/ViewModels/CleaningViewModel.cs @@ -0,0 +1,11 @@ +using HotelDataModels.Models; + +namespace HotelContracts.ViewModels; + +public class CleaningViewModel : ICleaningModel +{ + public int Id { get; set; } + public DateTime Date { get; set; } + public int RoomId { get; set; } + public Dictionary CleaningInstruments { get; set; } +} \ No newline at end of file diff --git a/Hotel/HotelContracts/ViewModels/GuestViewModel.cs b/Hotel/HotelContracts/ViewModels/GuestViewModel.cs new file mode 100644 index 0000000..35bccdd --- /dev/null +++ b/Hotel/HotelContracts/ViewModels/GuestViewModel.cs @@ -0,0 +1,11 @@ +using HotelDataModels.Models; + +namespace HotelContracts.ViewModels; + +public class GuestViewModel : IGuestModel +{ + public int Id { get; set; } + public string Name { get; set; } = string.Empty; + public string SecondName { get; set; } = string.Empty; + public string LastName { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/Hotel/HotelContracts/ViewModels/MaitreViewModel.cs b/Hotel/HotelContracts/ViewModels/MaitreViewModel.cs new file mode 100644 index 0000000..88e2946 --- /dev/null +++ b/Hotel/HotelContracts/ViewModels/MaitreViewModel.cs @@ -0,0 +1,13 @@ +using HotelDataModels.Models; + +namespace HotelContracts.ViewModels; + +public class MaitreViewModel : IMaitreModel +{ + public int Id { get; set; } + public string Name { get; set; } = string.Empty; + public string SecondName { get; set; } = string.Empty; + public string LastName { get; set; } = string.Empty; + public string Login { get; set; } = string.Empty; + public string Password { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/Hotel/HotelContracts/ViewModels/ReservationViewModel.cs b/Hotel/HotelContracts/ViewModels/ReservationViewModel.cs new file mode 100644 index 0000000..911e709 --- /dev/null +++ b/Hotel/HotelContracts/ViewModels/ReservationViewModel.cs @@ -0,0 +1,16 @@ +using System.ComponentModel; +using HotelDataModels.Models; + +namespace HotelContracts.ViewModels; + +public class ReservationViewModel : IReservationModel +{ + public int Id { get; set; } + [DisplayName("Start or reservation")] + public DateTime StartDate { get; set; } + [DisplayName("End or reservation")] + public DateTime EndDate { get; set; } + public int GuestId { get; set; } + public int MaitreId { get; set; } + public Dictionary ReservationsRooms { get; set; } +} \ No newline at end of file diff --git a/Hotel/HotelContracts/ViewModels/RoomViewModel.cs b/Hotel/HotelContracts/ViewModels/RoomViewModel.cs new file mode 100644 index 0000000..c595735 --- /dev/null +++ b/Hotel/HotelContracts/ViewModels/RoomViewModel.cs @@ -0,0 +1,11 @@ +using System.ComponentModel; +using HotelDataModels.Models; + +namespace HotelContracts.ViewModels; + +public class RoomViewModel : IRoomModel +{ + public int Id { get; set; } + public string Type { get; set; } = string.Empty; + public double Cost { get; set; } +} \ No newline at end of file