private void OnLogin() { var statusCode = _authenticator.Authenticate(Username, Password); if (statusCode == HttpStatusCode.OK) { ErrorOccurred = false; var parameters = new NavigationParameters { { "token", _authenticator.Token } }; _navigator.GoTo(AppViews.ServersView, parameters); } else { ErrorOccurred = true; } }
private void OnLogout() { _navigator.GoTo(AppViews.InitialView); }