This is an action to quiet title to 620 acres of farm land in Logan County and 540 acres in Stutsman County, North Dakota. The real object and purpose of the action was to obtain a declaration that two oil and gas leases and mineral deeds given by the plaintiffs were fraudulent and void. The plaintiffs had entered into two oil and gas leases in favor of the defendant, B. E. Winder, and into two mineral deeds in favor of D. W. Crawford. All these instruments were executed at the same time.
The action was tried to the court without a jury. After presentation of the evidence in this case and twelve other cases, involving similar facts, and the consideration of briefs filed by the parties, the court rendered and filed a memorandum decision declaring the oil and gas leases and the mineral deeds fraudulent and void.
After the memorandum decision had been filed declaring the oil and gas leases and the mineral deeds void, the plaintiffs made a motion requesting the trial court to modify its decision and to enter a judgment declaring that the mineral deeds were void and further declaring that the oil and gas leases were valid, and thus permitting the plaintiffs to retain all the moneys received by them at the time of the execution of these instruments, or received by them as subsequent delay rentals.
In its opinion the trial court in dealing with this and the other cases involving similar facts, required the plaintiffs to return all moneys received in this transaction. The trial court in this connection said:
“The court reaches the conclusion that the signature of the plaintiffs was obtained by misrepresentation and fraud. The execution of the oil lease and the mineral deed was one transaction. Plaintiffs have offered to return all moneys received in connection with the transaction. The court will require the plaintiffs to pay into court for delivery to the defendant Crawford all moneys received, either at the time of the transaction, or for a renewal of leases. When such payment has been made, the court will order judgment in favor of the plaintiffs and against the defendants setting aside the leases and the mineral deeds in each case.”
The pleadings show that this action was started on the theory that the oil and gas leases and mineral deeds involved were obtained by fraud. It was tried on the same theory. The complaint of the plaintiffs contains a tender to the defendants, B. E. Winder and D. W. Crawford, of the consideration paid at the time of such leases and deeds, towit, ten dollars each, which the complaint declares “is an inadequate consideration.” In the prayer for relief the plaintiffs ask: “that said leases and deeds be declared fraudulent and void and can-celled of record.” The complaint in this action was never amended. It stands as it was originally drawn and filed. The plaintiffs testified to substantiate the allegations of their complaint. They offered to bring into court all moneys which they had received at the time of the execution of .the instruments or later deposited to their credit. The defendant, Crawford, gave one check for the oil and gas leases and mineral deeds. No evidence was presented as to what was paid for each type of instrument. The testimony amply bears out that the plaintiffs offered to tender the money back that they had received for the oil and gas leases and the mineral deeds. August F. Zenker testified in that connection as follows:
“Q. Have you tendered that money back in your complaint ? A. The first check ?
“Q. Yes. A. Yes.
“Q. Are you ready and willing and able now to pay that money into court if he clears up your title to the property? A. Yes.
*673“Q. But you want him to give you and the other .plaintiff a quit-claim deed back to your land? A. Yes.
“Q. And a release from this lease? A. Yes.
“Q. Someone who has a hand in it? A.. Yes.
“Q. And you have tendered that in your complaint? A. Yes.
“Q. Now you said that he put some more money in the bank for you? A. Yes.
“Q. Did you tell the bank you were taking that money out? A. It is a separate deposit there.
“Q. You are not going to take it out? A. No.
“Q. You don’t want it? A. No.
“Q. You want your land cleared? A. Yes.
“Q. In this case you want your title to your land quieted and cleared against all the defendants with reference to a deed and lease? A. That is right.
“Q. You want them all wiped out? A. Yes.”
This- examination was conducted by the attorney for the plaintiffs.
With the record in this condition, the plaintiffs served a notice of motion which in their brief is denominated as, “Motion to Invalidate Mineral Deeds Only.” The notice of. motion states the following grounds:
“1. That there is no evidence in the record sufficient to invalidate the lease;
“2. That there is hereto attached a release signed by the plaintiffs releasing all claims as to the invalidity of the lease or leases involved in the action;
“3. That the execution and delivery of the lease was and is a separate transaction from the execution and delivery of the mineral deed; that the undisputed evidence conclusively shows that the mineral deed was not only procured by fraud but it was that type of fraud which constitutes .a forgery.”
The notice of motion further states that it is based upon the evidence and that reference may be had to the court reporter’s shorthand notes, upon the release attached to the notice and upon all the records and files- in the action. It further recites, “that no findings of fact, and no order for judgment has been signed, nor has any judgment been entered; that all that has been done is a memorandum opinion handed down by the court holding both the deed and the lease invalid and requiring the plaintiffs to pay back to the defendants all the money received, as a condition precedent to the entry of judgment.” Attached to the notice of motion is a document entitled, “Release of Claim of Invalidity of Lease.” Omitting its formal parts, it states:
“Whereas, the above entitled action has been tried, and a memorandum decision written by the presiding Judge dated the 15th day of July, 1953; and
“Whereas, no judgment has yet been ■entered and the plaintiffs and their attorneys are of the opinion that, with reference to the lease, the plaintiffs got what they bargained for and that there is no evidence, in the record with reference to ■ the procuring of the lease by fraud;
“Now, Therefore, the plaintiffs do hereby release the defendants from any and all claims of fraud in connection with the procuring of the plaintiffs’ signatures to the lease involved in the above entitled action, but merely claim fraud in connection with the procuring of the plaintiffs’ signatures to the mineral deed involved in the above entitled .action.”
This document is dated January 15, 1954, and signed by the plaintiffs in this action.
*674The court denied the motion. It said:
"The plaintiffs now seek by this motion to retain such fruits of the transaction as they desire to retain and to have the court declare void such fruits of the transaction as they would like to avoid. The original case was not started on any such theory, was not tried upon any such theory, and was not submitted upon any such theory.”
The order denying the motion is dated March 27, 1954. The plaintiffs appealed to this court from the order denying the motion and specify as error the denial thereof. They base their right of appeal on subsections 1 and 5 of Section 28-2702, NDRC 1943. The defendants move for a dismissal of the appeal on the ground that the order is not appealable under subsections 1 and 5 of Section 28-2702 of the NDRC.
The merits of this action are not before us. The sole and only question for decision is whether or not the unusual procedure here taken by the appellants is ap-pealable under either of the subsections cited and mentioned above.
The right of appeal is purely statutory. Anderson v. Bothum, 77 N.D. 678, 45 N.W.2d 488. Section 28-2702, NDRC 1943, provides what orders are appealable. The right of appeal under that section has been before this court in a great many cases. Our review of such cases would serve no purpose. None of the cases deal with a situation similar to the case at bar. The appellants cite no authority as precedent for the procedure taken.
The right of appeal exists in such cases, and only in such cases, as are prescribed by law. Ellingson v. Northwest Jobbers Credit Bureau, 58 N.D. 754, 227 N.W. 360; Burdick v. Mann, 59 N.D. 611, 231 N.W. 545. In the case of Dean v. Smith, 50 N.D. 638, 197 N.W. 589, 590, this court said in dealing with an appeal from certain interlocutory findings and conclusions of the trial court in an accounting action:
“This court has heretofore held that an order to be appealable under subdivision 1, § 7841, C.L.1913, must not only be an order affecting a substantial right, but must also be an order which in effect determines the action and prevents a judgment from which an appeal may be taken. Persons v. Simons, 1 N.D. 243, 46 N.W. 969; Whitney v. Ritz, 24 N.D. 576, 140 N.W. 676. Hence, a mere order for judgment is not appealable. Ellis v. George, 43 N.D. 408, 175 N.W. 623; Olness v. Duffy, 49 N.D. 933, 194 N.W. 113; In re Eaton, 7 N.D. 269, 74 N.W. 870. So an order refusing an application for judgment upon the special findings and general verdict of a jury is not appeal-able, since the order does not determine the action or prevent a judgment from which an appeal might be taken. (Persons v. Simons, supra).”
There is no question that the record amply bears out the conclusion reached by the trial court in its memorandum decision upon the motion filed by the plaintiffs and appellants', that the action was instituted and tried on the theory that the oil and gas leases and the mineral deeds were fraudulent and void. We have heretofore quoted the specific prayer of the plaintiffs asking that they be so declared and cancelled of record. The evidence heretofore set forth indicates conclusively that the plaintiffs offered to pay into court all of the moneys that they had received at the time of the transaction or subsequent thereto. They wanted their title cleared of the leases and the mineral deeds. The trial court granted them the relief they had asked. After granting them such relief, and after having won the action on the theory that they had presented to the trial court, the plaintiffs decided that they did not want what they had asked for in the first place. This action, therefore, presents the peculiar situation that the plaintiffs and appellants obtained and were granted exactly what they asked for and on the basis of what they had offered to do and still they are dissatisfied. Can *675they now, before entry of any judgment and based solely on the memorandum decision of the trial court, and the trial court’s order refusing to modify the same, claim that the order, affects a substantial right? Surely these appellants cannot contend that a substantial right has been affected when they obtained the relief they requested. Neither have they shown that the order in effect determines the action and prevents a judgment from which an appeal may be taken. They have the right to appeal from any judgment entered by the court in this action, and may attempt to show that two transactions were involved, and further attempt to show that the evidence 'does not bear out the conclusion reached -by the trial court. It is no hardship upon them that during such period they deposit in court the money that they received from the defendant, Crawford. If they prevail on the merits in event of an appeal, the money they now seek to retain will revert to them. The order appealed from is not appealable under subsection 1, Section 28-2702, NDRC 1943.
The next point is to determine whether the order involves the merits of the action or some part thereof. Subsection 5 of Section 28-2702, supra, was considered in the case of in In re Glavkee’s Estate, 75 N.D. 118, 25 N.W.2d 925. There the court quoted from the case of Bolton v. Donavan, 9 N.D. 575, 84 N.W. 357, 358, as follows:
“The term ‘merits,’ as used by the profession, when applied to actions, usually denotes the subject or grounds of an action as stated in the complaint, or the grounds of the defense as stated in the answer; and a trial of the merits of an action generally means the elicitation of evidence in support of the averments of fact set out in the pleadings. But the courts, in construing statutes governing appeals from interlocutory orders, have frequently enlarged this meaning and have held that the phrase ‘involves the merits’ must be so interpreted as to embrace orders which pass upon the substantial legal rights of the suitor, whether such' rights do or do not relate directly to the cause of actioji or subject-matter in controversy.”
See also Schutt v. Federal Land Bank of Saint Paul, 71 N.D. 640, 3 N.W.2d 417; Swiggum v. Valley Inv. Co., 73 N.D. 422, 15 N.W.2d 862.
In the case at bar the strict legal rights of the parties had been determined favorably to the plaintiffs. The pleadings and the evidence clearly show that the plaintiffs and appellants obtained the relief that they were seeking. The plaintiffs and appellants seek to change the entire theory of their. action and in effect to obtain a release therefrom and from the offer that they made in open court. They have prevailed upon the merits. The order of the trial court is not appealable under subsection 5 of Section 28-2702, NDRC 1943.
It follows that the motion of the defendants must be granted. The appeal is dismissed.
JOHNSON, GRIMSON and SATHRE, JJ-, concur.