FORT LAUDERDALE — The gamble to give up his Fort Lauderdale city commission seat in hopes to represent the state House District 94 in central Broward County has paid off for Bobby DuBose.

DuBose defeated fellow Democrat Levoyd Williams, a city commissioner in Lauderdale Lakes, taking about 70 percent of the vote in Tuesday’s primary. With no Republican challenger, DuBose was automatically elected to the post.

DuBose replaces the termed-out Perry Thurston, D-Fort Lauderdale, who was running to become the state’s first black attorney general. Thurston lost to white Democrat George Sheldon, who will face incumbent Republican Pam Bondi in the November general election. Thurston lost Miami-Dade but won Broward County overwhelmingly.

Alcee Hastings bested two challengers to retain his Congressional District 20 seat which he has held for more than 20 years. Jean Enright, a Palm Beach County Port commissioner, and Delray Beach resident Jameel McCline, a former heavyweight boxer, tried to unseat the Democrat. Hastings, whose district includes parts of Broward and Palm Beach counties, celebrated his victory Tuesday night in Fort Lauderdale.

Also retaining her seat is Congresswoman Frederica Wilson, who represents District 24, encompassing a swath of Miami-Dade and a sliver of Broward County. The district is 58 percent black and 28 percent Hispanic. She crushed her challenger, Michael A. Etienne, taking 80 percent of the votes cast.