You cannot eat your cake and have your cake?

The correct phrase here is that "you cannot have your cake and eat it, too".