public string[] createApplyPropertyDataBase(CreateApplyProperty applyPropertyData) { PropertyDataBase pDB = new PropertyDataBase(); pDB.applyFunction(); if (int.Parse(pDB._StaffhaveRoles[2]) == 1) { return pDB.createApplyPropertyData(applyPropertyData); } else { return new string[2] { _noRole, _errorMsg }; } }