Inverting Buck-Boost -12V converter Schematics
They are both using a buck converter in inverting buck-boost configuration, which ties the buck output to ground and takes the output from what would be the ground connection of the buck.
That's a perfectly good topology, so either one will work.  The difference is the first circuit uses an older buck controller with external FET and diode, which gives more flexibility for loop compensation, selection of FET/diode for your requirements, and soft-start.
The bottom circuit uses an integrated FET Simple Switcher that is meant to be easy to use, but you have to deal with what you get for loop response and start up.
Both would need a level shifting circuit if you wanted to control the enable to turn the converter on and off, because the part's enable is now referenced to the output, not ground.