/// <summary> /// Delete a reservation: /// 1. delete all RoomReservation /// 2. delete Reservation /// 3. delete Client /// </summary> public static void DeleteReservation(int idReservation) { Reservation reservation = ReservationDB.GetReservation(idReservation); ReservationDB.DeleteRoomReservation(idReservation); ReservationDB.DeleteReservation(idReservation); ClientDB.DeleteClient(reservation.Client.IdClient); }
//SUpprime une réservation en fonction d'un id public static void DeleteReservationRoom(int IdReservation) { RoomReservationDB.DeleteReservationRoom(IdReservation); ReservationDB.DeleteReservation(IdReservation); }