Ejemplo n.º 1
0
        public ActionResult Index(string BlogCategoryFriendlyUrl, int Page = 1)
        {
            ViewBag.Page = Page;
            ViewBag.BlogCategoryFriendlyUrl = BlogCategoryFriendlyUrl;

            ViewBag.BlogContent = _ContentService.Get(Request.Url.Authority, "blog");

            ViewBag.Title = HtmlModel.FindValue(ViewBag.BlogContent, "blog-title", true).ToString();
            if (!string.IsNullOrEmpty(BlogCategoryFriendlyUrl))
            {
                ViewBag.Title += " | " + BlogCategoryFriendlyUrl;
            }

            ViewBag.MetaDescription = HtmlModel.FindValue(ViewBag.BlogContent, "blog-subtitle", true).ToString();

            var _Model = _BlogService.Get(Request.Url.Authority
                                          , APP._CurrentLang, BlogCategoryFriendlyUrl, null, Page);

            return(View(_Model));
        }
Ejemplo n.º 2
0
 public IHttpActionResult Get(int SiteID)
 {
     return(Ok(_ContentService.Get(SiteID, User.Identity.GetUserId())));
 }
Ejemplo n.º 3
0
 public PartialViewResult Index(string Alias, string View, int Take = 0)
 {
     ViewBag.Take = Take;
     return(PartialView(View, _ContentService.Get(Request.Url.Authority, Alias)));
 }