public ActionResult Index()
{
if ((CodeFirstSecurity.IsAuthenticated) && (CodeFirstRoleServices.IsUserInRole(CodeFirstSecurity.CurrentUserName, BgResources.Security_PremiumRole)))
{
return View(BlogServices.HomePostsForRole(true, Int32.Parse(BgResources.Pager_HomeIndexPostsPerPage)));
}
else
{
return View(BlogServices.HomePostsForRole(false, Int32.Parse(BgResources.Pager_HomeIndexPostsPerPage)));
}
}