public string SetupNewUser() { var promptMessage = "Please choose a new username for this client. Enter " + UIConstants.abortionCode + " to quit"; var response = CLI.PromptUser(promptMessage); while (controller.HasUser(response) && response != UIConstants.abortionCode) { CLI.DisplayLine("Username \"" + response + "\" is already taken"); response = CLI.PromptUser(promptMessage); } if (response == UIConstants.abortionCode) { return(UIConstants.abortionCode); } var nodetype = PromptNodeType(); if (nodetype == UIConstants.abortionCode) { return(UIConstants.abortionCode); } controller.AddUser(response, nodetype); return(response); }