public ActionResult GetPostsByTag(string id, int? page)
{
ViewBag.Action = "GetPostsByTag";
ViewBag.Route = "Default";
ViewBag.Tag = id;
ViewBag.Title = "Posts - " + id;
var pageIndex = page ?? 0;
if ((CodeFirstSecurity.IsAuthenticated) && (CodeFirstRoleServices.IsUserInRole(CodeFirstSecurity.CurrentUserName, BgResources.Security_PremiumRole)))
{
return View("Posts", BlogServices.FindPagedPostsByTag(true, id, pageIndex, Int32.Parse(BgResources.Pager_PostPerPage)));
}
else
{
return View("Posts", BlogServices.FindPagedPostsByTag(true, id, pageIndex, Int32.Parse(BgResources.Pager_PostPerPage)));
}
}