public async Task <Result <GetPersonIdentificationResponse> > Handle(GetPersonIdentificationCommand request, CancellationToken cancellationToken) { try { RegisterPersonService rs = new RegisterPersonService(_unitOfWork); List <Identifier> result = new List <Identifier>(); result = await Task.Run(() => rs.GetPersonIdentifierType(request.CodeName)); return(Result <GetPersonIdentificationResponse> .Valid(new GetPersonIdentificationResponse() { Identifers = result })); } catch (Exception ex) { return(Result <GetPersonIdentificationResponse> .Invalid(ex.Message)); } }