示例#1
0
        public CardInfoResponseModel CheckCardStatusByLaser(CardInfoRequestModel requestModel)
        {
            CheckCardBankServiceSoapClient.EndpointConfiguration endpoint = CheckCardBankServiceSoapClient.EndpointConfiguration.CheckCardBankServiceSoap;
            CheckCardBankServiceSoapClient checkCardBank = new CheckCardBankServiceSoapClient(endpoint, "https://idcard.bora.dopa.go.th/CheckCardStatus/CheckCardService.asmx");

            var byLaserResponse = checkCardBank.CheckCardByLaserAsync(requestModel.PID, requestModel.Firstname, requestModel.Lastname, requestModel.BirthDay, requestModel.LaserNumber);

            return(GetResponse(byLaserResponse));
        }
示例#2
0
        public CardInfoResponseModel CheckCardStatusByCID(CardInfoRequestModel requestModel)
        {
            CheckCardBankServiceSoapClient.EndpointConfiguration endpoint = CheckCardBankServiceSoapClient.EndpointConfiguration.CheckCardBankServiceSoap;
            CheckCardBankServiceSoapClient checkCardBank = new CheckCardBankServiceSoapClient(endpoint, "https://idcard.bora.dopa.go.th/CheckCardStatus/CheckCardService.asmx");

            var cIDResponse = checkCardBank.CheckCardByCIDAsync(requestModel.CID, requestModel.PID, requestModel.Bp1No);

            return(GetResponse(cIDResponse));
        }