public string[] setResourceDataBase(CreateResourceCard StructData) { CaseDataBase SDB = new CaseDataBase(); if (int.Parse(SDB._StaffhaveRoles[1]) == 1) { return SDB.setResourceData(StructData); } else { return new string[2] { _noRole, _errorMsg }; } }