public List<StudentBodyInformation> getStudentDataBase8(string ID) { CaseDataBase SDB = new CaseDataBase(); List<StudentBodyInformation> returnValue = new List<StudentBodyInformation>(); if (int.Parse(SDB._StaffhaveRoles[3]) == 1) { returnValue = SDB.getStudentData8(ID); } else { StudentBodyInformation addValue = new StudentBodyInformation(); addValue.checkNo = _noRole; addValue.errorMsg = _errorMsg; returnValue.Add(addValue); } return returnValue; }