//public void EditStaff(Staff staff) //{ // try { staff_db.EditStaff(staff); } // catch // { // throw new Exception("database connection failed"); // } //} //public void AddStaffInfo(Staff staff) //{ // try { staff_db.AddStaffInfo(staff); } // catch { throw new Exception("database connection failed"); } //} //public void RemoveStaffInfo(Staff staff) //{ // try { staff_db.RemoveStaffInfo(staff); } // catch { throw new Exception("database connection failed"); } //} public Staff DoLogin(int id, string password) { Staff staff; try { return(staff = staff_db.DoLogin(id, password)); } catch (Exception e) { throw e; } }