The board shall have the authority to contract with any municipal corporation located within the county for the holding by the board of any primary or election to be conducted within the municipal corporation.