sentence1: He served as the general counsel to both the Isthmian Canal Commission and later the Panama Railroad Company .
sentence2: He served as the General Counsel of the Isthmian Canal Commission and later the Panama Railroad Company .