Beispiel #1
0
        public ActionResult BinInqury(string binNumber)
        {
            BinNumberInquiryRequest request = new BinNumberInquiryRequest();

            request.binNumber = binNumber;
            BinNumberInquiryResponse response = BinNumberInquiryRequest.Execute(request, settings);

            return(View(response));
        }
Beispiel #2
0
        protected void BtnInquiry_Click(object sender, EventArgs e)
        {
            Settings settings = new Settings();
            BinNumberInquiryRequest request = new BinNumberInquiryRequest();

            request.binNumber = BinNumber.Value;
            BinNumberInquiryResponse response = BinNumberInquiryRequest.Execute(request, settings);
            string jsonResponse = JsonConvert.SerializeObject(response, Formatting.Indented);

            result.InnerHtml = "<pre>" + jsonResponse + "</pre>";
        }