Exemplo n.º 1
0
 public ActionResult Index(string path)
 {
     if (this.HttpContext != null)
     {
         Portal.porPage page = Portal.Services.PortalService.GetByUrl(Account.Context.WebSite.IdWebSite, path);
         string         html = Portal.Services.PortalService.RenderControls(page.Html);
         ViewData["Html"] = html;
     }
     return(View());
 }
Exemplo n.º 2
0
        public ActionResult Index(string path)
        {
            if (this.HttpContext != null)
            {
                Portal.Context.Path = path;

                string urlMappingRedirect = Portal.Services.PortalService.GetUrlMappingTo();
                if (!string.IsNullOrWhiteSpace(urlMappingRedirect))
                {
                    Response.RedirectPermanent(urlMappingRedirect);
                }

                Portal.porPage page = Portal.Services.PortalService.GetByUrl();
                string         html = Portal.Services.PortalService.Render(page.Html);

                ViewData["Html"] = html;
            }
            return(View());
        }