public IHttpActionResult Get(int SiteID , string Url , string Lang , string BlogCategoryFriendlyUrl , string BlogTagName , int Page , bool IncludeContent = false) { return(Ok(_BlogService.Get(SiteID, Url, Lang, BlogCategoryFriendlyUrl, BlogTagName, Page, IncludeContent))); }
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)); }