public void Sincronizar(UpdatePuntacion pp)
        {
            if (pp.cod_nacional == null)
            {
                var set = new
                {
                    pp.tipoPago,
                    actualizado = 1
                };

                var where = new { idventa = pp.idventa };

                _restClient
                .Resource(_config.Puntos.Update)
                .SendPut(new
                {
                    puntos = new { set, where }
                });
            }
            else
            {
                var set = new
                {
                    pp.tipoPago,
                    pp.proveedor,
                    actualizado = 1
                };

                var where = new { idventa = pp.idventa, cod_nacional = pp.cod_nacional };

                _restClient
                .Resource(_config.Puntos.Update)
                .SendPut(new
                {
                    puntos = new { set, where }
                });
            }
        }
        public void UpdatePuntacion(UpdatePuntacion pp)
        {
            var set = new
            {
                pp.cantidad,
                pp.dtoLinea,
                pp.dtoVenta,
                pp.dni,
                pp.precio,
                pp.receta,
                pp.tipoPago,
                pp.trabajador
            };

            var where = new { idventa = pp.idventa, idnlinea = pp.idnlinea };

            _restClient
            .Resource(_config.Puntos.Update)
            .SendPut(new
            {
                puntos = new { set, where }
            });
        }