Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string url = "", username = "", password = "";
- string jsonData = JsonConvert.SerializeObject(transactions, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore });
- jsonData = HttpUtility.UrlEncode(jsonData);
- var response = SendData2(jsonData, url, username, password);
- if (isMissedTrans)
- {
- if (response.Item1 == 200)
- {
- foreach (TransactionMsg tran in transactions)
- {
- DeleteMissedTransaction(tran.PFSID);
- }
- }
- }
- else
- {
- if (response.Item1 != 200)
- {
- foreach (TransactionMsg tran in transactions)
- {
- InsertMissedTransaction(tran.PFSID, response.Item1, response.Item2);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement