public SmallGroup FromArena(Group arena) { SmallGroup group = new SmallGroup(); LookupMapper lMapper = new LookupMapper(); if (ShouldShow("GroupID") == true) group.GroupID = arena.GroupID; if (ShouldShow("Active") == true) group.Active = arena.Active; if (ShouldShow("AreaID") == true) group.AreaID = arena.AreaID; if (ShouldShow("AverageAge") == true) group.AverageAge = arena.AverageAge; if (ShouldShow("CategoryID") == true) group.CategoryID = arena.ClusterType.CategoryID; if (ShouldShow("GroupClusterID") == true) group.GroupClusterID = arena.GroupClusterID; if (ShouldShow("CreatedBy") == true) group.CreatedBy = arena.CreatedBy; if (ShouldShow("DateCreated") == true) group.DateCreated = arena.DateCreated; if (ShouldShow("DateModified") == true) group.DateModified = arena.DateModified; if (ShouldShow("Description") == true) group.Description = arena.Description; if (ShouldShow("Distance") == true) group.Distance = arena.Distance; if (ShouldShow("Leader") == true) group.Leader = new GenericReference(arena.Leader); if (ShouldShow("ClusterLevelID") == true) group.ClusterLevelID = arena.ClusterLevelID; if (ShouldShow("MaxMembers") == true) group.MaxMembers = arena.MaxMembers; if (ShouldShow("MeetingDay") == true) group.MeetingDay = lMapper.FromArena(arena.MeetingDay); if (ShouldShow("MemberCount") == true) group.MemberCount = arena.Members.Count; if (ShouldShow("Modifiedby") == true) group.ModifiedBy = arena.ModifiedBy; if (ShouldShow("Name") == true) group.Name = arena.Name; if (ShouldShow("NavigationUrl") == true) group.NavigationUrl = arena.NavigationUrl; if (ShouldShow("Notes") == true) group.Notes = arena.Notes; if (ShouldShow("PictureUrl") == true) { if (arena.ImageBlob != null && arena.ImageBlob.BlobID > 0) { group.PictureUrl = getImageThumbnailUrl(arena.ImageBlob); } } if (ShouldShow("PrimaryAge") == true) group.PrimaryAge = lMapper.FromArena(arena.PrimaryAge); if (ShouldShow("PrimaryMaritalStatus") == true) group.PrimaryMaritalStatus = lMapper.FromArena(arena.PrimaryMaritalStatus); if (ShouldShow("Private") == true) group.Private = arena.Private; if (ShouldShow("RegistrationCount") == true) group.RegistrationCount = arena.RegistrationCount; if (ShouldShow("Schedule") == true) group.Schedule = arena.Schedule; if (ShouldShow("TargetLocationID") == true) group.TargetLocationID = arena.TargetLocationID; if (ShouldShow("Topic") == true) group.Topic = lMapper.FromArena(arena.Topic); if (ShouldShow("ClusterTypeID") == true) group.ClusterTypeID = arena.ClusterTypeID; if (ShouldShow("GroupUrl") == true) group.GroupUrl = arena.GroupUrl; return group; }