sentences:  Badger joined the New York State Militia as a sergeant major, was promoted to quartermaster in 1812, eventually became a brigadier general in 1819, and was judge advocate of the 27th Brigade of Infantry from 1820 to 1827 when he retired from military service.Elected as an Adams man to the 19th United States Congress, Badger served as U.S. Representative for the twenty-third district of New York from March 4, 1825, to March 3, 1827.Afterwards, he engaged in mercantile pursuits.