/// <summary> /// Reader returns fields: /// GroupId, GroupName, IMGroupId, ContactUid, OrgUid /// </summary> public static IDataReader GetListGroups() { if (!Security.IsUserInGroup(InternalSecureGroups.Partner)) { return(DBGroup.GetListGroups()); } else { int PartnerGroupId = DBGroup.GetGroupForPartnerUser(Security.CurrentUser.UserID); return(DBGroup.GetListGroupsByPartner(PartnerGroupId, true, true)); } }