public ViewPageContentViewData(ProjectFirmaModels.Models.FirmaPage firmaPage, bool showEditButton) { FirmaPageContentHtmlString = firmaPage.GetFirmaPageContentHtmlString(); FirmaPageDisplayName = firmaPage.GetFirmaPageDisplayName(); ShowEditButton = showEditButton; HasPageContent = firmaPage.HasPageContent(); EditPageContentUrl = SitkaRoute <FirmaPageController> .BuildUrlFromExpression(t => t.EditInDialog(firmaPage)); }
public EditViewModel(ProjectFirmaModels.Models.FirmaPage firmaPage) { FirmaPageContentHtmlString = firmaPage != null?firmaPage.GetFirmaPageContentHtmlString() : null; }