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)); }
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)); }