public async Task <ServiceResponse <bool> > TCKimlikNoDogrulaAsync(TCKimlikNoDogrulaRequestModel request) { try { var response = await _kpsService.TCKimlikNoDogrulaAsync(request); return(response); } catch (Exception ex) { return(new ServiceResponse <bool>(ex)); } }
public async Task <ServiceResponse <bool> > TCKimlikNoDogrulaAsync([FromQuery] TCKimlikNoDogrulaRequestModel request) { try { var response = await _kpsBusiness.TCKimlikNoDogrulaAsync(request).ConfigureAwait(true); return(response); } catch (Exception ex) { return(new ServiceResponse <bool>(ex)); throw; } }
public async Task <ServiceResponse <bool> > TCKimlikNoDogrulaAsync(TCKimlikNoDogrulaRequestModel request) { try { var service = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap12); var response = await service.TCKimlikNoDogrulaAsync(request.TCKimlikNo, request.Ad, request.Soyad, request.DogumYili); return(new ServiceResponse <bool>(response.Body.TCKimlikNoDogrulaResult, true, 100, "asd")); if (response.Body != null) { return(new ServiceResponse <bool>(response.Body.TCKimlikNoDogrulaResult, true, 100, "asd")); } } catch (Exception ex) { return(new ServiceResponse <bool>(ex)); } }