public string[] OutPropertyRecordDataBase(string rID, string unit) { PropertyDataBase pDB = new PropertyDataBase(); StaffDataBase sDB = new StaffDataBase(); ManageDataBase msg = new ManageDataBase(); string[] MembershipStaffRoles = msg.getMembershipStaffRoles(HttpContext.Current.User.Identity.Name); string StaffRoles = string.Join(",",MembershipStaffRoles); int aa = StaffRoles.IndexOf("15"); int aab = StaffRoles.IndexOf("4"); if (StaffRoles.IndexOf("15") > -1 || StaffRoles.IndexOf("4") > -1) { return pDB.OutPropertyRecordData(rID, unit); } else { return new string[2] { _noRole, _errorMsg }; } }