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