public ViewPageContentViewData(ProjectFirmaModels.Models.CustomPage customPage, bool showEditButton) { FirmaPageContentHtmlString = customPage.GetFirmaPageContentHtmlString(); FirmaPageDisplayName = customPage.GetFirmaPageDisplayName(); ShowEditButton = showEditButton; HasPageContent = customPage.HasPageContent(); EditPageContentUrl = SitkaRoute <CustomPageController> .BuildUrlFromExpression(t => t.EditInDialog(customPage)); }
public DisplayPageContentViewData(FirmaSession currentFirmaSession, ProjectFirmaModels.Models.CustomPage customPage, bool showEditButton) : base(currentFirmaSession) { PageTitle = customPage.GetFirmaPageDisplayName(); ViewWholePageContentViewData = new ViewPageContentViewData(customPage, showEditButton); DisplayDocumentLibraryViewData = new DisplayDocumentLibraryViewData(customPage, currentFirmaSession); }