Merge branch 'main' of https://git.is.ulstu.ru/Vyacheslav/CourseWork_Hotel
This commit is contained in:
commit
2a2a1eec2f
@ -22,9 +22,9 @@ namespace HotelContracts.ViewModels
|
|||||||
public ConferenceBookingViewModel() { }
|
public ConferenceBookingViewModel() { }
|
||||||
|
|
||||||
[JsonConstructor]
|
[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);
|
this.ConferenceConferenceBookings = ConferenceConferenceBookings.ToDictionary(x => x.Key, x => x.Value as IConferenceBookingModel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,9 +26,9 @@ namespace HotelContracts.ViewModels
|
|||||||
public RoomViewModel() { }
|
public RoomViewModel() { }
|
||||||
|
|
||||||
[JsonConstructor]
|
[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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user