public void checkUsername(string uname) { int i = DATAdd.checkuname(uname); if (i == 1) { Exception tmpex = new Exception("Username already existing."); throw tmpex; } }
public void Add() { DATAdd.ADD(uname, pass, fname, mname, lname, gender, bday, email, contact, occupation); }