예제 #1
0
 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));
 }
예제 #2
0
 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);
 }