This commit is contained in:
Анна Забродина 2024-03-23 19:06:40 +04:00
commit 2a2a1eec2f
2 changed files with 4 additions and 4 deletions

View File

@ -22,9 +22,9 @@ namespace HotelContracts.ViewModels
public ConferenceBookingViewModel() { }
[JsonConstructor]
public ConferenceBookingViewModel(Dictionary<int, LunchViewModel> ConferenceBookingDinners, Dictionary<int, ConferenceBookingViewModel> ConferenceConferenceBookings)
public ConferenceBookingViewModel(Dictionary<int, LunchViewModel> ConferenceBookingLunches, Dictionary<int, ConferenceBookingViewModel> ConferenceConferenceBookings)
{
this.ConferenceBookingLunches = ConferenceBookingDinners.ToDictionary(x => x.Key, x => x.Value as ILunchModel);
this.ConferenceBookingLunches = ConferenceBookingLunches.ToDictionary(x => x.Key, x => x.Value as ILunchModel);
this.ConferenceConferenceBookings = ConferenceConferenceBookings.ToDictionary(x => x.Key, x => x.Value as IConferenceBookingModel);
}
}

View File

@ -26,9 +26,9 @@ namespace HotelContracts.ViewModels
public RoomViewModel() { }
[JsonConstructor]
public RoomViewModel(Dictionary<int, LunchViewModel> RoomDinners)
public RoomViewModel(Dictionary<int, LunchViewModel> RoomLunches)
{
this.RoomLunches = RoomDinners.ToDictionary(x => x.Key, x => x.Value as ILunchModel);
this.RoomLunches = RoomLunches.ToDictionary(x => x.Key, x => x.Value as ILunchModel);
}
}
}