public StudentTeachingInformation getStudentDataBase7(string ID) { CaseDataBase SDB = new CaseDataBase(); StudentTeachingInformation returnValue = new StudentTeachingInformation(); if (int.Parse(SDB._StaffhaveRoles[3]) == 1) { returnValue = SDB.getStudentData7(ID); } else { returnValue.checkNo = _noRole; returnValue.errorMsg = _errorMsg; } return returnValue; }