Go to a store ask for a Dell certified type C charger  (Important 45W)  If it works pay , if it doesn't don't.  The way you have mentioned the issue, its clearly the charger.   
Hey, The charger that came with my dell xps 13 9370 doesn't work at all. It doesn't charge and it doesn't seem to recognize it being plugged in. Doesn't work on any of the 3 ports.   But when I plug in a 30 watt charger for a completely different laptop, then that one works. So the ports aren't broken. And I have another dell xps 13 9370 45 watt charger that came for that laptop, doesn't work either.   Would anyone know what the issue is? Why the charger that came with the PC doesn't work but a completely different model's does work?   Thanks, Evan
Dell XPS 13 9370 charger doesn't work, but a 30 watt charger for another pc does