Esempio n. 1
0
        public PartialViewResult EmbeddedArticle(string articlehandle)
        {
            ExtronWeb.Models.Article article        = new ExtronWeb.Models.Article();
            InsiderEntity            currentInsider = Insider.GetCurrentInsider();
            var model = article.GetArticle(articlehandle, currentInsider);

            return(PartialView("../Widgets/EmbeddedArticle", model));
        }
Esempio n. 2
0
        // GET: Article
        public ActionResult Index(string articlehandle)
        {
            ExtronWeb.Models.Article article        = new ExtronWeb.Models.Article();
            InsiderEntity            currentInsider = Insider.GetCurrentInsider();
            var model = article.GetArticle(articlehandle, currentInsider);

            if (model != null)
            {
                return(View(model));
            }
            return(Redirect("/"));
        }