public ActionResult SidebarStats()
{
if ((CodeFirstSecurity.IsAuthenticated) && (CodeFirstRoleServices.IsUserInRole(CodeFirstSecurity.CurrentUserName, BgResources.Security_PremiumRole)))
{
return PartialView("SidebarStats", Mapper.Map<StatsDTO, StatsModel>(StatsServices.RetrieveSidebarStats(true)));
}
else
{
return PartialView("SidebarStats", Mapper.Map<StatsDTO, StatsModel>(StatsServices.RetrieveSidebarStats(false)));
}
}