sentences:  He was First Judge of the Genesee County Court from 1821 to 1823.Wilson was declared elected as a Democratic-Republican to the 18th United States Congress, holding office from March 4, 1823, to January 7, 1824, when he was succeeded by Parmenio Adams.Wilson took his seat when Congress met on December 1, 1823, but Adams contested Wilson's election, because the election inspectors had made mistakes when certifying the returns.