Esempio n. 1
0
        public async Task <ServiceResponse <bool> > YabanciKimlikNoDogrulaAsync(YabanciKimlikNoDogrulaRequestModel request)
        {
            try
            {
                var response = await _kpsService.YabanciKimlikNoDogrulaAsync(request);

                return(response);
            }
            catch (Exception ex)
            {
                return(new ServiceResponse <bool>(ex));
            }
        }
Esempio n. 2
0
        public async Task <ServiceResponse <bool> > YabanciKimlikNoDogrulaAsync([FromQuery] YabanciKimlikNoDogrulaRequestModel request)
        {
            try
            {
                var response = await _kpsBusiness.YabanciKimlikNoDogrulaAsync(request).ConfigureAwait(true);

                return(response);
            }
            catch (Exception ex)
            {
                return(new ServiceResponse <bool>(ex));

                throw;
            }
        }
Esempio n. 3
0
        public async Task <ServiceResponse <bool> > YabanciKimlikNoDogrulaAsync(YabanciKimlikNoDogrulaRequestModel request)
        {
            try
            {
                var service  = new KPSPublicYabanciDogrula.KPSPublicYabanciDogrulaSoapClient(KPSPublicYabanciDogrula.KPSPublicYabanciDogrulaSoapClient.EndpointConfiguration.KPSPublicYabanciDogrulaSoap12);
                var response = await service.YabanciKimlikNoDogrulaAsync(request.KimlikNo, request.Ad, request.Soyad, request.DogumGun, request.DogumAy, request.DogumYil);

                return(new ServiceResponse <bool>(response.Body.YabanciKimlikNoDogrulaResult, true, 100, "asd"));

                if (response.Body != null)
                {
                    return(new ServiceResponse <bool>(response.Body.YabanciKimlikNoDogrulaResult, true, 100, "asd"));
                }
            }
            catch (Exception ex)
            {
                return(new ServiceResponse <bool>(ex));
            }
        }