private void UpdateName(string newName) { if (MenuDefaults.AreYouSureScreen("Change Name", () => UpdateName(newName))) { personControler.UpdateName(newName); } ManageProfile(); }
private void DeleteAccount() { if (MenuDefaults.AreYouSureScreen("Delete Account", () => DeleteAccount())) { accountListControler.DeleteAccount(personControler.GetId(), AccountId); } AccountTransactions(); }
private void DeleteUser() { if (MenuDefaults.AreYouSureScreen("Delete User", () => DeleteUser())) { personControler.DeleteUser(); } else { ManageProfile(); } }