Exemplo n.º 1
0
        async void Button_Clicked(object sender, EventArgs e)
        {
            //var todoItem = (APhoto)BindingContext;
            APhoto photo = new APhoto
            {
                Name        = "",
                Location    = loc,
                Description = Notes.Text
            };
            await App.Database8.SaveItemAsync(photo);

            await Navigation.PopAsync();
        }
 public Task <int> DeleteItemAsync(APhoto item)
 {
     return(database.DeleteAsync(item));
 }
 public Task <int> SaveItemAsync(APhoto item)
 {
     return(database.InsertAsync(item));
 }