public List <Pago> ConsultarPagos(ConsultarCreditoRequest request)
        {
            Empleado empleado = _unitOfWork.EmpleadoRepository.FindBy(x => x.Cedula == request.Cedula, includeProperties: "Creditos").FirstOrDefault();

            if (empleado != null)
            {
                var credito = ConsultarCredito(request.CodigoCredito);
                if (credito != null)
                {
                    return(credito.Pagos);
                }
            }
            return(null);
        }
        public List <Cuota> ConsultarCuotas(ConsultarCreditoRequest request)
        {
            var empleado = _unitOfWork.EmpleadoRepository.FindFirstOrDefault(x => x.Cedula == request.Cedula);

            if (empleado != null)
            {
                var credito = ConsultarCredito(request.CodigoCredito);
                if (credito != null)
                {
                    return(credito.Cuotas);
                }
            }
            return(null);
        }