public bool CheckIfRealPerson(Player player) { MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap); return(client.TCKimlikNoDogrulaAsync( new TCKimlikNoDogrulaRequest (new TCKimlikNoDogrulaRequestBody(player.NationalityId, player.FirstName.ToUpper(), player.LastName.ToUpper(), player.DateOfBirth.Year))) .Result.Body.TCKimlikNoDogrulaResult); }
public bool CheckIfRealPerson(Customer customer) { MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient(); return(client.TCKimlikNoDogrulaAsync(customer.NationalityId, customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DateOfBirth.Year)); }