public ActionResult DeleteCardFromWallet(string userId, string cardId) { BankCardDeleteRequest request = new BankCardDeleteRequest(); request.userId = userId; request.cardId = cardId; request.clientIp = "127.0.0.1"; BankCardDeleteResponse response = BankCardDeleteRequest.Execute(request, settings); return(View(response)); }
protected void BtnDeleteCard_Click(object sender, EventArgs e) { Settings settings = new Settings(); BankCardDeleteRequest request = new BankCardDeleteRequest(); request.userId = userId.Value; request.cardId = cardId.Value; request.clientIp = "127.0.0.1"; BankCardDeleteResponse response = BankCardDeleteRequest.Execute(request, settings); string jsonResponse = JsonConvert.SerializeObject(response, Formatting.Indented); result.InnerHtml = "<pre>" + jsonResponse + "</pre>"; }