/// <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);
        }
        public static bool IsExistIsCorrect(string firstname, string lastname, int idReservation)
        {
            Reservation reservation = ReservationDB.GetReservation(idReservation);

            if (!reservation.Client.Firstname.Equals(firstname))
            {
                return(false);
            }

            if (!reservation.Client.Lastname.Equals(lastname))
            {
                return(false);
            }

            return(true);
        }
 /// <summary>
 /// Return a reservation, selected with id
 /// </summary>
 public static Reservation GetReservation(int idReservation)
 {
     return(ReservationDB.GetReservation(idReservation));
 }