diff --git a/Hotel/HotelView/FormReservation.cs b/Hotel/HotelView/FormReservation.cs index 68994a6..1ee0260 100644 --- a/Hotel/HotelView/FormReservation.cs +++ b/Hotel/HotelView/FormReservation.cs @@ -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);