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)); }
public IHttpActionResult Get(int SiteID) { return(Ok(_ContentService.Get(SiteID, User.Identity.GetUserId()))); }
public PartialViewResult Index(string Alias, string View, int Take = 0) { ViewBag.Take = Take; return(PartialView(View, _ContentService.Get(Request.Url.Authority, Alias))); }