// First, let's define our result collection containing the group rights.
List<UBIK.Service.DTO.V240.GroupRight> results = new List<UBIK.Service.DTO.V240.GroupRight>();
if(defaultRights != null) { // We'll add the default rights in case we don't have defined any specific rights for the active user's group. results.AddRange(defaultRights); }
// Now we try to find the rights defined for this object.