Exemple #1
0
 public bool SaveReceiptEvents(IEnumerable <ReceiptEvent> parRE)
 {
     if (parRE != null && parRE.Count() > 0)
     {
         try
         {
             db.DeleteReceiptEvent(parRE.First());
             db.InsertReceiptEvent(parRE);
         }
         catch (Exception e)
         {
             Global.OnSyncInfoCollected?.Invoke(new SyncInformation {
                 Exception = e, Status = eSyncStatus.NoFatalError, StatusDescription = "SaveReceiptEvents N=>" + parRE?.Count().ToString() + '\n' + e.Message + '\n' + new System.Diagnostics.StackTrace().ToString()
             });
         }
     }
     return(true);
 }