コード例 #1
0
        public ViewResult ViewPageContent(NeptunePageTypeEnum neptunePageTypeEnum)
        {
            var neptunePageType = NeptunePageType.ToType(neptunePageTypeEnum);
            var viewData        = new DisplayPageContentViewData(CurrentPerson, neptunePageType);

            return(RazorView <DisplayPageContent, DisplayPageContentViewData>(viewData));
        }
コード例 #2
0
        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);
        }