public async Task <IDataResult <bool> > Handle(VerifyCidQuery request, CancellationToken cancellationToken)
            {
                var result = await _personService.VerifyCid(request.TCKimlikNo, request.Ad, request.Soyad, request.DogumYili);

                if (result != true)
                {
                    return(new ErrorDataResult <bool>(result, Messages.CouldNotBeVerifyCid));
                }
                return(new SuccessDataResult <bool>(result, Messages.VerifyCid));
            }
Exemplo n.º 2
0
            public async Task <IDataResult <bool> > Handle(VerifyCidQuery request, CancellationToken cancellationToken)
            {
                var result = await _personService.VerifyCid(new Entities.Dtos.Citizen()
                {
                    BirthYear = request.BirthYear,
                    CitizenId = request.CitizenId,
                    Name      = request.Name,
                    Surname   = request.Surname
                });

                if (!result)
                {
                    return(new ErrorDataResult <bool>(result, Messages.CouldNotBeVerifyCid));
                }
                return(new SuccessDataResult <bool>(result, Messages.VerifyCid));
            }