The exact year and model of your C5 would help us to give you better advice. However, the switch in question will be attached to the door lock mechanism inside the door. You will need to take the door card off to access this and fit a replacement part.
Rupert
January 2020