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 } }); }
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 } }); }