This is a quasi-contract claim that contemplates an obligation imposed by equity to prevent injustice, in the absence of an actual agreement between the parties. Where there is a written contract between plaintiff and defendant governing all aspects of the matter at issue, there can be no claim against a third-party non-signatory to the contract.
J.T. Magen & Co., Inc. v. Nissan N. Am., Inc., NY Slip Op 08784 (1st Dep't December 5, 2019)
Here is the decision.