Чут чут поправил

This commit is contained in:
Kirill 2024-05-29 14:59:21 +04:00
parent 9a391bf270
commit 3fde5e7e9c

View File

@ -84,7 +84,7 @@ namespace HotelView
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);
}
}
@ -103,7 +103,7 @@ namespace HotelView
RoomId = ((Room?)comboBoxRoom.SelectedItem)?.Id ?? 0,
ArrivalDate = ToDateOnly(dateTimePickerArrival.Value),
DepartureDate = ToDateOnly(dateTimePickerDeparture.Value),
Price = (int)numericUpDownPrice.Value,
Price = (double)numericUpDownPrice.Value,
};
_reservationLogic.Update(updatedReservation);