public bool checkIfRealPerson(Customer customer)
        {
            MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient();

            return(client.TCKimlikNoDogrula(Convert.ToInt64(customer.NationalityId), customer.FirstName.ToUpper()
                                            , customer.LastName.ToUpper(), customer.DateofBirth.Year));
        }
Ejemplo n.º 2
0
 public bool IsRealPerson(Customer customer)
 {
     MernisServiceReference.KPSPublicSoapClient soapClient = new MernisServiceReference.KPSPublicSoapClient();
     return(soapClient.TCKimlikNoDogrula(Convert.ToInt64(customer.IdentificationId),
                                         customer.Name.ToUpper(),
                                         customer.Surname.ToUpper(),
                                         customer.Birthday.Year));
 }
Ejemplo n.º 3
0
        public bool CheckPerson(Person person)
        {
            MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient(MernisServiceReference.
                                                                                                               KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);


            return(client.TCKimlikNoDogrulaAsync(new MernisServiceReference.TCKimlikNoDogrulaRequest
                                                     (new MernisServiceReference.TCKimlikNoDogrulaRequestBody(123, "ENGİN", "DEMİROĞ", 1985))).Result.Body.TCKimlikNoDogrulaResult);
        }
Ejemplo n.º 4
0
        public bool checkIfRealPerson(Person person)
        {
            bool check = false;

            MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient();
            check = Convert.ToBoolean(client.TCKimlikNoDogrulaAsync(person.NaturalId, person.FirstName.ToUpper(),
                                                                    person.LastName.ToUpper(), person.YearOfBirth));
            return(check);
        }
Ejemplo n.º 5
0
        public bool CheckIfRealPerson(Gamer gamer)
        {
            MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient(MernisServiceReference.KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new MernisServiceReference.TCKimlikNoDogrulaRequest(new MernisServiceReference.TCKimlikNoDogrulaRequestBody
                                                                                                         (gamer.NationalityId, gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(), gamer.DateOfBirth.Year))).Result.Body.TCKimlikNoDogrulaResult);

            return(true);
        }
Ejemplo n.º 6
0
 public bool CheckPerson(Gamer gamer)
 {
     MernisServiceReference.KPSPublicSoapClient soapClient = new MernisServiceReference.KPSPublicSoapClient();
     return(soapClient.TCKimlikNoDogrula(long.Parse(gamer.Identity), gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(), gamer.BirthYear));
 }
 public bool CheckIfRealPerson(Users user)
 {
     MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient();
     return(client.TCKimlikNoDogrulaAsync(user.NationalityId, user.FirstName, user.LastName, user.DateOfBirth.Year));
 }
Ejemplo n.º 8
0
 public bool CheckIfRealPerson(Customer customer)
 {
     MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient();
     return(client.TCKimlikNoDogrulaAsync(customer.NationalityId, customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DateOfBirth));
 }
Ejemplo n.º 9
0
 public bool CheckIfRealPerson(Customer customer)
 {
     MernisServiceReference.KPSPublicSoapClient kPSPublicSoap = new MernisServiceReference.KPSPublicSoapClient();
     return(kPSPublicSoap.TCKimlikNoDogrula(Convert.ToInt64(customer.NationalId), customer.FirstName.ToUpper(), customer.SecondName.ToUpper(), customer.BirthDate.Year));
 }
Ejemplo n.º 10
0
 public bool checkNationalityNo(Gamer gamer)
 {
     MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient(MernisServiceReference.KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
     //return client.TCKimlikNoDogrulaAsync(gamer.NationaltyNo, gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(),Convert.ToInt32(gamer.DateOfBirth));
     return(true);
 }
        public bool Validate(User user)
        {
            MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient();

            return(client.TCKimlikNoDogrula(user.IDNumber, user.FirstName.ToUpper(), user.LastName.ToUpper(), user.DateOfBirth.Year)); //bool döner
        }