fix x2
This commit is contained in:
parent
f8a030850c
commit
124a9c9b86
@ -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