Example #1
0
 public void RegisterBoat(int choosenMemberId)
 {
     try
     {
         float  length   = bv.RegisterBoatLength();
         int    value    = int.Parse(bv.RegisterBoatType());
         string boatType = ChooseBoatType(value);
         be.RegisterBoat(choosenMemberId, boatType, length);
         v.ConfirmMessage("Boat added");
     }
     catch
     {
         v.ViewErrorMessage("Registration failed. Try again.");
     }
     v.Continue();
 }