do (one) the courtesy of (doing something)
To be considerate enough to do a particular thing. Would you at least do me the courtesy of not interrupting me?
do somebody the courtesy of doing something
be polite by doing the thing that is mentioned: Please do me the courtesy of listening to what I’m saying.