public bool Add() { bool result = false; DBaction db = new DBaction(); if (this.isExisted()) { result = false; } else { result = (db.AddUser(this.opCode, this.opName, this.pwd, this.email, this.dept) > 0)?true:false; } db.Close(); return(result); }
public bool Add() { bool result = false; DBaction db = new DBaction(); if (this.isExisted()) { result = false; } else { result = (db.AddUser(this.opCode, this.opName, this.pwd, this.email, this.dept) > 0)?true:false; } db.Close(); return(result); }