private async Task ExecuteLoginCommand() { if (LoginMode == Initial) { LoginMode = LoginMode.Login; return; } else if (LoginMode == LoginMode.Login) { if (await Login()) { AlertService.ShowSuccess(LoggedInGreetings, Success, GoToFind, () => { Application.Current.MainPage = new AppShell(); }); } } }
private async Task ExecuteRegisterCommand() { if (LoginMode == Initial) { LoginMode = LoginMode.Register; return; } else if (LoginMode == LoginMode.Register) { if (await Register()) { IsHighlyAppreciated = true; AlertService.ShowSuccess(RegisteredGreetings, Success, GoToFind, () => { Application.Current.MainPage = new AppShell(); }); } } }