Notwithstanding any other provision, upon obtaining the consent of any city as provided in Sections 5117 and 5118, the board of supervisors of a county may order any work and levy, collect and enforce assessments and issue and enforce assessment bonds to represent unpaid assessments in an assessment district created by it lying wholly within such city.