One way to go is to find the common tones, and also find the moving tones:
Common tones between the two chords:
D, E, F#
Moving tones (D+7 to Gmaj/B)
C to B
C to C#
A# to B
A# to A
F# to G
Play a simple idea over the first chord, then use as many common tones as you can, and adjust those tones that need to change.
Common tones between the two chords:
D, E, F#
Moving tones (D+7 to Gmaj/B)
C to B
C to C#
A# to B
A# to A
F# to G
Play a simple idea over the first chord, then use as many common tones as you can, and adjust those tones that need to change.