public string[] setStaffWorkData(staffWorkData WorkData) { StaffDataBase sDB = new StaffDataBase(); sDB.personnelFunction(); if (int.Parse(sDB._StaffhaveRoles[1]) == 1) { return sDB.setStaffWorkData(WorkData); } else { return new string[2] { _noRole, _errorMsg }; } }