(1) Performance by a contractor of a construction contract in accordance with the provisions of the contract entitles a contractor to payment from the owner. (2) Performance by a subcontractor of a subcontract entitles the subcontractor to payment from the contractor.