If you made that agreement (that the ding would be repaired if you bought the car) with the dealer, then that's who you need to talk to if it wasn't done right. Any arrangements the dealer might have made with the outside contractor are the dealer's problem.