public Task <ConsultarTerceroQueryResponse> Handle(ConsultarTerceroQueryRequest request, CancellationToken cancellationToken) { var tercero = _palmAppUnitOfWork.TerceroRepository.Get(new ConsultaTerceroPorIdentificacionSpecification(request.Identificacion)); var terceroView = new TerceroModelView() { Apellidos = tercero.Apellidos, Direccion = tercero.Direccion, Email = tercero.Email, Estado = tercero.Estado, FechaNacimiento = tercero.FechaNacimiento, Id = tercero.Id, Identificacion = tercero.Identificacion, Nombres = tercero.Nombres, Telefono = tercero.Telefono }; return(Task.FromResult(new ConsultarTerceroQueryResponse(terceroView))); }
public ConsultarTerceroQueryResponse(TerceroModelView tercero) { Tercero = tercero; }