private async void Login() { bool val; _api = new PayByPhoneApi(); await _api.Login("7202564696", "2343"); return; do { Console.WriteLine("Login to PayByPhone"); Console.Write("\tUsername: "******"\tPassword: "******"Error Logging In"); } } while (!val); Console.WriteLine("Logged in"); }