private void changeBoat(Member member) { Boat selectedBoat = this._view.getChosenBoat(member); ChangeBoat menuChoice = this._menuView.getChangeBoatChoice(); this.handleChangeBoat(selectedBoat, menuChoice); }
private void handleChangeBoat(Boat boat, ChangeBoat menuChoice) { if (menuChoice == ChangeBoat.GoBack) { return; } if (menuChoice == ChangeBoat.ChangeType) { this._registry.updateBoatList(boat, this._view.getBoatType()); } if (menuChoice == ChangeBoat.ChangeLength) { this.tryUpdateBoatLength(boat); } }