Boil the macaroni in boiling water and drain.
Finely chop the onion and corn.
Melt the butter in a pan and sauté the onion.
Add the corn and continue to sauté together.
Pour in the heavy cream and season with salt and pepper.
Add the boiled macaroni and toss with the sauce.
Sprinkle parmesan cheese and mix well.