The demurrer interposed in the court below was properly overruled. It fails to point out any defect in the complaint which would entitle the defendant to a dismissal of the action.
In this Court the defendant interposed a demurrer ore tenus for that it appears upon the face of the complaint that it fails to state or set out a cause of action or to state or set out facts sufficient to constitute a cause of action. This demurrer was reduced to writing and points out in detail the alleged deficiencies in the complaint, in substance as follows ; for that it is not alleged: (1) that the returns made by the registrar and judges of election were canvassed and the result determined and declared by the municipal board of elections and a certificate of elections issued to plaintiff or any other person; (2) that any canvass and determination of the result of such election made by the municipal board of elections was not correctly and legally done and performed; (3) that said board, in any respect, acted wrongfully or wantonly, arbitrarily, or unlawfully or otherwise than in good faith; (4) that a certificate of elec*163tion required by law was issued to relator or was not issued to defendant; (5) tbat upon a canvass by said board tbe result was not accurately, legally and correctly ascertained and declared, or tbat defendant was not declared to have received a majority of tbe votes; (6) tbat relator bas presented himself for qualification or offered to take tbe oath of office and been denied sucb right or tbat be bas presented a certificate of election and demanded tbe right to qualify; and (7) tbat tbe allegations tbat defendant “wrongfully and unlawfully” assumed and bas “usurped” tbe office are not supported by requisite allegations of fact and constitute mere conclusions of tbe pleader.
May a contestant for public office maintain a civil action in tbe nature of quo warranto upon tbe mere allegation tbat be bas received a majority of tbe votes cast as shown by tbe returns of tbe registrar and judges of election without further alleging tbat sucb returns have been canvassed and tbat upon sucb canvass it bas been ascertained and declared tbat be is tbe duly elected candidate and tbat a certificate of election was thereupon issued to him? On tbe facts in this case we must answer in tbe negative.
Tbat tbe pleader must allege all tbe material ultimate facts upon which bis cause of action is based bas become axiomatic. If all sucb facts are not alleged a demurrer will be sustained.
Our election law, Consolidated Statutes, cb. 97, as amended, provides certain machinery to be followed in ascertaining and declaring tbe successful candidate in an election. It is applicable to all municipal elections. Sec. 2, ch. 164, Public Laws 1929. See also sec. 42, ch. 164, Public Laws 1929, and Phillips v. Slaughter, 209 N. C., 543, 193 S. E., 897.
A certified statement of tbe results of an election in any ward or precinct must be signed by tbe registrar and judges of election and a copy thereof must be furnished to tbe board of canvassers. C. S., 5985, as amended by sec. 8, ch. 165, Public Laws 1933. Upon receipt of sucb returns tbe result of tbe election must be canvassed and declared by tbe said board, C. S., 5986, as amended by cb. 165, Public Laws 1933; after which tbe board must judicially determine tbe result and issue a certificate of election to tbe successful candidate. O. S., 5991, as amended by cb. 165, Public Laws 1933. It is then, and upon tbe certificate thus issued, tbe party elected may qualify and enter upon tbe discharge of tbe duties of tbe office to which be bas been elected. Cohoon v. Swain, 216 N. C., 317, 5 S. E. (2d), 1.
In canvassing tbe returns and judicially determining tbe result tbe board of canvassers must pass upon tbe legality of any disputed ballots. Burgin v. Board of Elections, 214 N. C., 140, 198 S. E., 592.
It follows tbat tbe board of elections bas authority, judicial in its nature, to examine tbe returns and decide upon their regularity, correctness and sufficiency, and to accept or reject them. Gatling v. Boone, *16498 N. C., 573; Barnett v. Midgett, 151 N. C., 1, 65 S. E., 441. It constitutes an essential part of the machinery provided by statute for the ascertainment of the successful candidate in an election to which contesting candidates must first resort for the determination and declaration of the results of the election. The returns made by the registrars and judges of election merely constitute a preliminary step and such returns alone do not entitle the apparently successful candidate to the office.
While the declaration of the board of elections of the result of an election as judicially determined and the certificate issued thereon are not conclusive, they must be taken as prima facie correct. Jones v. Flynt, 159 N. C., 87, 74 S. E., 817; S. v. Jackson, 183 N. C., 695, 110 S. E., 593; Gohoon v. Swain, supra. “The declaration of election as contained in the certificate conclusively settles prima facie the right of the person so ascertained and declared to be elected to be inducted into, and exercise the duties of, the office. Cohoon v. Swain, supra, and cases cited. The law contemplates and intends generally that the result of an election as determined by the proper election officials shall stand and be effective until it shall be regularly contested and reversed or adjudged to be void by a tribunal having jurisdiction for that purpose and the certificate of election is not subject to attack except in a civil action in the nature of a quo warranto proceeding. Cohoon v. Swain, supra, and cases cited.
Non constat the declaration of the result and the issuance of a certificate by a board of elections is prima facie correct, it is not conclusive. Resort, in proper instance, may be had to the courts and the courts may examine and pass upon the correctness and sufficiency of the return and to settle and determine the true and lawful result of the election as it affects the right of the parties before the court. Gatling v. Boone, supra; Harkrader v. Lawrence, 190 N. C., 441, 130 S. E., 35, and cases cited. Even so, the court will not permit itself to be substituted for the board of elections in the first instance for the purpose of canvassing the returns from the precinct officials and declaring the results thereof. The contesting candidates must first use the machinery at hand before applying to the court for relief.
Here the relator does not allege that the returns of the precinct officials have been canvassed or that the result of the election has been judicially determined or that a certificate has been issued or that the board of election acted arbitrarily or in bad faith. Nor does he allege that upon such canvass it was judicially determined that he is the duly elected candidate or that he has received or is entitled to receive a certificate of election. On the contrary, plaintiff admits in his brief that there was no canvass. It follows that the complaint fails to state a good cause of action.
The demurrer ore tenus entered in this Court was well advised and must be sustained.
Demurrer sustained.