Advertisement
Guest User

Untitled

a guest
Mar 10th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. string url = "", username = "", password = "";
  2. string jsonData = JsonConvert.SerializeObject(transactions, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore });
  3.  
  4. jsonData = HttpUtility.UrlEncode(jsonData);
  5.  
  6. var response = SendData2(jsonData, url, username, password);
  7.  
  8. if (isMissedTrans)
  9. {
  10. if (response.Item1 == 200)
  11. {
  12. foreach (TransactionMsg tran in transactions)
  13. {
  14. DeleteMissedTransaction(tran.PFSID);
  15. }
  16. }
  17. }
  18. else
  19. {
  20. if (response.Item1 != 200)
  21. {
  22. foreach (TransactionMsg tran in transactions)
  23. {
  24. InsertMissedTransaction(tran.PFSID, response.Item1, response.Item2);
  25. }
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement