During which war did the telegraph allow a president to direct armies for the first time from the White House?

A) The War of 1812

B) The Revolutionary War

C) The War Between the States