This commit is contained in:
Вячеслав Иванов 2024-03-23 18:47:45 +04:00
parent f8a030850c
commit 124a9c9b86

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);
}
}
}