public void Render() { if (PageLayout == null || PageLayout.IsEmpty()) { return; } if (Metadata == null) { return; } foreach (var section in PageLayout.Sections) { _renderSection(section); if (section.SubSections != null) { foreach (var controlSection in section.SubSections) { _renderSection(controlSection); } } } }