Пример #1
0
        public override IPageModuleModel GetModel()
        {
            var contentModule = PublishedContent.As <ContentModule>();

            return(new ContentPageModuleModel
            {
                Components = contentModule.ContentModuleComponents ?? new List <IPublishedContent>()
            });
        }
        public override object GetModel()
        {
            var content = PublishedContent.As <ContactDetails>()?.ContactDetailsPage;

            return(_contactService.GetContact(content));
        }