Exemple #1
0
        public void Sincronizar(UpdatePuntuacion pp)
        {
            var set = new
            {
                pp.tipoPago,
                pp.proveedor,
                actualizado = 1
            };

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

            _restClient
            .Resource(_config.Puntos.Update)
            .SendPut(new
            {
                puntos = new { set, where }
            });
        }
Exemple #2
0
        public void UpdatePuntacion(UpdatePuntuacion 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 }
            });
        }