Murray, C. J., concurred.
The note sued on in this case was payable to the plaintiff, and although it described him as agent of McKee, this did not take away his right to sue in his own name at law. Then, to entitle him to go into equity and seek a foreclosure of the mortgage, depended simply upon the fact, whether he was really interested in the subject matter.
It is not disputed, that by the contract with McKee, he was fully entitled to one-half of the note; nor can his right of action be defeated on the ground that the mortgage to secure the ■ payment of the note was made to McKee and not to himself. A mortgage is a mere incident to the debt which it secures, and follows the transfer of a note with the full effect of a regular assignment. Ord having the right to the note, had undoubtedly a right to foreclose the mortgage.
The defense set up as to the agreement between McKee and Mun-roe, was not properly substantiated by the evidence. The Court pro perly refused the introduction of a copy of a mortgage, when the original was not accounted for; and so also with the letter of attorney from Walter to St. John; and thus, it does not appear by what authority Munroe paid to St. John the money alleged to have been paid on account of his agreement with McKee upon the mortgage of Walters. The only remaining question for consideration is, whether the Court below erred in rendering judgment, for the whole amount of the sum due on the notes, in favor of the complainant. From the allegations of his bill it is clear, that he is only entitled to one-half of the amount, and that is all he seeks to recover.
If, under this judgment, he should collect the whole amount, he would be answerable to McKee for the other half, and this would be productive of another action. It is the duty of a Court of Equity, when all the parties to a controversy are before it, to adjust the rights of all, and leave nothing open for future litigation, if it can be helped.
*517The decree must be here modified, so as to order a forelosure of the mortgage, and have the money paid over to a Master, to be appointed for the purpose, to distribute it equally between the complainant, Ord, and the defendant, McKee, and upon the report of the Master to the Court below, if the fund provided from the sale is insufficient to pay the amount found due, then the District Court will render judgment for one-half of the deficiency in favor of each, Ord and McKee, severally.
Ordered accordingly.