public async void saveBillingInformationButton_Clicked(object sender, EventArgs e) { var BillStuff = new BillingModel { Address1 = addressLine1Entry.Text, Address2 = addressLine2Entry.Text, City = cityEntry.Text, State = stateEntry.Text, Zip = zipEntry.Text, }; await App.Database.SaveBillingAsync(BillStuff); var billing = await App.Database.GetBilling(); var billingList = new ObservableCollection <BillingModel>(); billing.ForEach(x => billingList.Add(x)); BillingListView.ItemsSource = billingList; }
public Task <int> SaveBillingAsync(BillingModel bill) { return(database.InsertAsync(bill)); }