public ViewResult ViewPageContent(NeptunePageTypeEnum neptunePageTypeEnum) { var neptunePageType = NeptunePageType.ToType(neptunePageTypeEnum); var viewData = new DisplayPageContentViewData(CurrentPerson, neptunePageType); return(RazorView <DisplayPageContent, DisplayPageContentViewData>(viewData)); }
public DisplayPageContentViewData(Person currentPerson, NeptunePageType neptunePageType) : base(currentPerson, Models.NeptunePage.GetNeptunePageByPageType(neptunePageType), NeptuneArea.OCStormwaterTools) { EntityName = "Stormwater Tools"; PageTitle = neptunePageType.NeptunePageTypeDisplayName; var neptunePageByPageType = Models.NeptunePage.GetNeptunePageByPageType(neptunePageType); ViewWholePageContentViewData = new ViewPageContentViewData(neptunePageByPageType, currentPerson); }