The board may contract with the governing body of any school district, and the governing board of any school district may contract with the board, for the transportation by any transit facility of the transit district of any pupils in attendance at any school maintained and operated by any such school district lying either in whole or in part within the transit district created under this part.