BgEngine.Controllers.PostController.GetPostsByTag C# (CSharp) Method

GetPostsByTag() private method

private GetPostsByTag ( string id, int page ) : System.Web.Mvc.ActionResult
id string
page int
return System.Web.Mvc.ActionResult
        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)));
            }
        }