public Task <int> SaveAddressAsync(DbAddress address) { if (address.ID != 0) { return(Database.UpdateAsync(address)); } else { return(Database.InsertAsync(address)); } }
private void Dalp_OnUserSelected(DbAddress result) { DeliveryAddress.Text = result.Address; currentAddress = result; }
public Task <int> DeleteAddressAsync(DbAddress address) { return(Database.DeleteAsync(address)); }