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

GetPostsByCategory() private method

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