Чут чут поправил
This commit is contained in:
parent
9a391bf270
commit
3fde5e7e9c
@ -84,7 +84,7 @@ namespace HotelView
|
|||||||
|
|
||||||
foreach (var reservation in reservations)
|
foreach (var reservation in reservations)
|
||||||
{
|
{
|
||||||
dataGridView.Rows.Add(reservation.Id, reservation.GuestId, _guestLogic.Get(reservation.GuestId)?.FIO, reservation.RoomId, reservation.ArrivalDate,
|
dataGridView.Rows.Add(reservation.Id, reservation.GuestId, _guestLogic.Get(reservation.GuestId)?.FIO, reservation.RoomId, _roomLogic.Get(reservation.RoomId)?.Id, reservation.ArrivalDate,
|
||||||
reservation.DepartureDate, reservation.Price);
|
reservation.DepartureDate, reservation.Price);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -103,7 +103,7 @@ namespace HotelView
|
|||||||
RoomId = ((Room?)comboBoxRoom.SelectedItem)?.Id ?? 0,
|
RoomId = ((Room?)comboBoxRoom.SelectedItem)?.Id ?? 0,
|
||||||
ArrivalDate = ToDateOnly(dateTimePickerArrival.Value),
|
ArrivalDate = ToDateOnly(dateTimePickerArrival.Value),
|
||||||
DepartureDate = ToDateOnly(dateTimePickerDeparture.Value),
|
DepartureDate = ToDateOnly(dateTimePickerDeparture.Value),
|
||||||
Price = (int)numericUpDownPrice.Value,
|
Price = (double)numericUpDownPrice.Value,
|
||||||
};
|
};
|
||||||
|
|
||||||
_reservationLogic.Update(updatedReservation);
|
_reservationLogic.Update(updatedReservation);
|
||||||
|
Loading…
Reference in New Issue
Block a user