Thermospheric Response to Solar EUV during Quiet and Flare Conditions