(1) He served as the General Counsel for both the Panama Railroad Company and later the Isthmian Canal Commission .
(2) He served as the General Counsel of the Isthmian Canal Commission and later the Panama Railroad Company .

Do these two sentences mean the same thing?
no