"Can I buy you a cup of coffee" I asked. Made narration

A ) I asked whether I brought him a cup of coffee.

B ) I asked if I could buy him a cup of coffee. ✅

C ) I asked that I could buy him a cup of coffee.

D ) I asked if I can buy him a cup of coffee.