Example #1
0
        private void EditBoatType(int choosenMemberId, int boatNr)
        {
            string inputType = bv.IfEditBoatType();

            if (inputType == "y")
            {
                int    value    = int.Parse(bv.RegisterBoatType());
                string boatType = ChooseBoatType(value);
                if (boatType == null)
                {
                    return;
                }
                be.EditBoatType(choosenMemberId, boatNr, boatType);
                v.ConfirmMessage("Boattype changed.");
            }
            else if (inputType == "n")
            {
                return;
            }
            else
            {
                v.ViewErrorMessage("Type 'y' for yes or 'n' for no. Try again.");
                return;
            }
        }