public void EditMember(model.Member member) { if (member.GetMemberId() != "0") { MemberView.WriteMemberToConsole(member, true); MemberView.EditMemberMenu(); string choice = System.Console.ReadLine(); if (choice == "1") { string name = MemberView.GetNewMemberName(); member.SetName(name); MemberView.Success(); } else if (choice == "2") { string personalNumber = MemberView.GetPersonalNumber(); member.SetPersonalNumber(personalNumber); MemberView.Success(); } else if (choice == "3") { BoatController.BoatMenu(member); } else { MemberView.InvalidChoice(); } MemberView.PressToContinue(); } else { MemberView.MemberNotFound(); } }
public void AddNewMember() { string name = MemberView.GetNewMemberName(); if (name != "back") { string personalNumber = MemberView.GetPersonalNumber(); if (personalNumber != "back") { Roster.CreateNewMember(name, personalNumber); } } }