Edit binding models

This commit is contained in:
Viltskaa 2023-04-06 17:55:58 +04:00
parent 10fb0d8938
commit 1cd297eec8
7 changed files with 25 additions and 25 deletions

View File

@ -4,8 +4,8 @@ namespace HotelContracts.BindingModels;
public class CleaningBindingModel : ICleaningModel
{
public int Id { get; }
public DateTime Date { get; }
public int RoomId { get; }
public Dictionary<int, ICleaningInstrumentsModel> CleaningInstruments { get; }
public int Id { get; set; }
public DateTime Date { get; set; }
public int RoomId { get; set; }
public Dictionary<int, ICleaningInstrumentsModel> CleaningInstruments { get; set; }
}

View File

@ -4,6 +4,6 @@ namespace HotelContracts.BindingModels;
public class CleaningInstrumentsBindingModel : ICleaningInstrumentsModel
{
public int Id { get; }
public string Type { get; }
public int Id { get; set; }
public string Type { get; set; } = string.Empty;
}

View File

@ -4,8 +4,8 @@ namespace HotelContracts.BindingModels;
public class GuestBindingModel : IGuestModel
{
public int Id { get; }
public string Name { get; }
public string SecondName { get; }
public string LastName { get; }
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;
}

View File

@ -5,9 +5,9 @@ namespace HotelContracts.BindingModels;
public class MaitreModelBindingModel : IMaitreModel
{
public int Id { get; }
public string Name { get; }
public string SecondName { get; }
public string LastName { get; }
public string Login { get; }
public string Password { get; }
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;
}

View File

@ -4,10 +4,10 @@ namespace HotelContracts.BindingModels;
public class ReservationModelBindingModel : IReservationModel
{
public int Id { get; }
public DateTime StartDate { get; }
public DateTime EndDate { get; }
public int GuestId { get; }
public int MaitreId { get; }
public Dictionary<int, IRoomModel> ReservationsRooms { get; }
public int Id { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public int GuestId { get; set; }
public int MaitreId { get; set; }
public Dictionary<int, IRoomModel> ReservationsRooms { get; set; }
}

View File

@ -4,7 +4,7 @@ namespace HotelContracts.BindingModels;
public class RoomModelBindingModel : IRoomModel
{
public int Id { get; }
public string Type { get; }
public int Cost { get; }
public int Id { get; set; }
public string Type { get; set; }
public double Cost { get; set; }
}

View File

@ -3,5 +3,5 @@
public interface IRoomModel : IId
{
string Type { get; }
int Cost { get; }
double Cost { get; }
}