Ejemplo n.º 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));
 }
Ejemplo n.º 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);
 }