In 1790 , during the French Revolution , the departments of Ain and Léman are created .
The departments of Ain and Léman were created during the French Revolution .