When notice is required to be given to stockholders or directors under the Banking Act, or the articles of incorporation or bylaws of any state bank, a waiver of notice in writing, signed by the person or persons entitled to the notice, whether before or after the time stated in the notice, shall be deemed equivalent to notice. If the vote of stockholders or directors at a meeting is required or permitted in connection with any corporate action, by any section of the Banking Act, the meeting and vote of stockholders or directors may be dispensed with, if all of the stockholders or directors who would have been entitled to vote upon the action if the meeting were held, consent in writing to the corporate action. If the action consented to would have required the filing of a certificate under the Banking Act, if the action had been voted upon by the stockholders or directors at a meeting, the certificates filed shall state that written consent has been given under this section in lieu of stating that the stockholders or directors have voted upon the corporate action in question, if a statement of voting is required in the certificate.