People have kept every breed of dog in an apartment. What matters most of the time is the time you spend with them, and that they get exercise. Cardigan Corgis do fine in apartments so long as they have mental stimulation and several walks.
While there are breeds to definitely, absolutely veto in apartments, Corgis aren't one. Alaskan huskies, LGD breeds, schipperkes (small, but very, VERY barky) and anything that poos over a pound at a time, those are the kinds you don't want in an apartment!
....actually, you don't really want Alaskan huskies or LGDs at all unless you're using them for the job they're bred for. Not all dogs are pets.