If you're only going to lift dum bells, it wouldn't help a lot with getting abs. Because that mainly focuses on your biceps. Doing sit ups will help with your abdominal muscles.
So if you want to use dumbells, what you can do is lie down on the ground and place a dum bell on the surface of your feet (your legs should be touching) and left them up slightly above the ground without bending your legs.