private async void ActionSearch() { // TODO Check that `Search` is a valid email address if (Search.Length == 0) { await ShowDialog("Veuillez entrez une adresse e-mail valide"); return; } var compte = await WSService.GetCompteByEmail(Search); if (compte == null) { await ShowDialog("Compte introuvable"); return; } Compte = compte; }