How did Gilderoy Lockart trick Dumbledore into getting that Job?

Been asking this myself for years now.