private async void Update_clicked(object sender, EventArgs e) { if (Valida()) { Aluno aluno = new Aluno { Nome = entNome.Text.Trim(), SobreNome = entSobreNome.Text.Trim(), }; try { await _service.ActualizarAlunos(aluno); LimparCampos(); ActualizarDados(); } catch (Exception) { await DisplayAlert("Erro:", "", "OK"); } } else { await DisplayAlert("Erro", "", "OK"); } }