예제 #1
0
 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));
 }
예제 #2
0
 public EditViewModel(ProjectFirmaModels.Models.FirmaPage firmaPage)
 {
     FirmaPageContentHtmlString = firmaPage != null?firmaPage.GetFirmaPageContentHtmlString() : null;
 }