Exemple #1
0
        private void BtnApagarVinho(object sender, EventArgs e)
        {
            Vinho v = BindingContext as Vinho;

            App.Database.DeleteItemAsync(v);
            Navigation.PopAsync();
        }
Exemple #2
0
        internal Task <int> SaveItemAsync(Vinho item)
        {
            if (item.Id == 0)
            {
                return(bancoDados.InsertAsync(item));
            }

            return(bancoDados.UpdateAsync(item));
        }
Exemple #3
0
 internal Task <int> DeleteItemAsync(Vinho item)
 {
     return(bancoDados.DeleteAsync(item));
 }