internal GalleryGroup(tblGallery gal) { if (gal != null) { this.GalleryID = gal.GalleryID; this.SiteID = gal.SiteID.Value; this.GalleryTitle = gal.GalleryTitle; GalleryHelper gh = new GalleryHelper(SiteID); this.GalleryImages = gh.GalleryImageEntryListGetByGalleryID(this.GalleryID); } }