示例#1
0
 private void UploadToServer(Expenditure[] itemsToUpload)
 {
     if (itemsToUpload.Any())
     {
         AsyncOp.Get(
             asyncOp: () => _restConnection.Post(RestCallsConstants.Expenditure, itemsToUpload),
             onSuccess: x => { _localDatabase.ClearUnsynchronizedItems(); },
             onFailure: x => { },
             onCancel: () => { }
             ).Run();
     }
 }