public RenderedPageResult GetPage(PageAcquisitorDTO pageAcquisitorDTO)
        {
            var s = Get("GetPage", pageAcquisitorDTO);

            return(new RenderedPageResult {
                TemplateContent = s.Content.ReadAsStringAsync().GetTaskResult()
            });
        }
Beispiel #2
0
        public RenderedPageResult GetPage(PageAcquisitorDTO dto)
        {
            PageOptions p = data.GetPageOptions(dto.ModuleCode, dto.ViewPath);

            p.Layout = Utils.CombineUrl(RazorConfig.Theme.BasePath, p.Layout);
            var html = RenderPartial(contextAccessor.HttpContext, p.ViewPath, null, new Dictionary <string, object> {
                { "PageOptions", p }
            });

            return(new RenderedPageResult
            {
                TemplateContent = html,
                Sources = p.GetSourcesString(),
                ViewParams = p.ViewParams
            });
        }
        public virtual IActionResult GetMainComponent([FromQuery] PageAcquisitorDTO dto)
        {
            var html = views.GetMainComponent(dto.ViewPath);

            return(Content(html));
        }
        public virtual IActionResult GetPage([FromQuery] PageAcquisitorDTO dto)
        {
            var html = views.GetPage(dto);

            return(Content(html.TemplateContent));
        }