public void checkOut(int id, Hotel hotel, int idHotel, string idRoom) { if (id == this.id) { this.checkInStatus = false; this.room = hotel.changeRoomStatus(idHotel, convertStringFormat(idRoom, 5), checkInStatus); this.idRoom = convertStringFormat("", 5); changeInFile(id, 7); changeInFile(id, 6); } }
public void bookRoom(int id, Hotel hotel, int idHotel, string idRoom) { if (id == this.id) { string idRoom2 = convertStringFormat(idRoom, 5); this.checkInStatus = true; this.room = hotel.changeRoomStatus(idHotel, idRoom2, checkInStatus); if (this.room != null) { this.idRoom = idRoom2; } else { this.checkInStatus = false; } changeInFile(id, 7); changeInFile(id, 6); } }
public void checkOut(int id, Hotel hotel, int idHotel, string idRoom) { if (id == this.id) { this.checkInStatus = false; this.room = hotel.changeRoomStatus(idHotel, convertStringFormat(idRoom, 5), checkInStatus); this.idRoom = convertStringFormat("", 5); changeInFile(id, 7); changeInFile(id, 6); } }
public void bookRoom(int id, Hotel hotel, int idHotel, string idRoom) { if (id == this.id) { string idRoom2 = convertStringFormat(idRoom, 5); this.checkInStatus = true; this.room = hotel.changeRoomStatus(idHotel, idRoom2, checkInStatus); if (this.room != null) { this.idRoom = idRoom2; } else this.checkInStatus = false; changeInFile(id, 7); changeInFile(id, 6); } }