private async void BtnInclude_Clicked(object sender, EventArgs e) { await contatoService.AddContato(Convert.ToInt32(txtId.Text), txtName.Text, txtEmail.Text); txtId.Text = string.Empty; txtName.Text = string.Empty; txtEmail.Text = string.Empty; await DisplayAlert("Sucess", "Contato included", "Ok"); await ShowContact(); }
private async void BtnIncluir_Clicked(object sender, EventArgs e) { await contatoService.AddContato(Convert.ToInt32(txtId.Text), txtNome.Text, txtEmail.Text); txtId.Text = string.Empty; txtNome.Text = string.Empty; txtEmail.Text = string.Empty; await DisplayAlert("Success", "Contato incluido com sucesso", "Ok"); await ExibeContatos(); }