public async Task Deactivate() { var answer = await Application.Current.MainPage.DisplayAlert("Confirm", $"Deactivate your account?", "Yes", "No"); if (answer) { Application.Current.MainPage = new LoginPage(); await _apiService.Deactivate <Model.User>(APIService.User.UserId); await Application.Current.MainPage.DisplayAlert("Confirm", $"Your account hase been deactivated!", "OK"); } }