Esempio n. 1
0
 public ViewResult Index()
 {
     ViewBag.OnlineUsers     = _userService.GetUsersOnline();
     ViewBag.TotalUsers      = _userSessionService.GetTotalSessionCount().ToString("N0");
     ViewBag.TopicCount      = _forumService.GetAggregateTopicCount().ToString("N0");
     ViewBag.PostCount       = _forumService.GetAggregatePostCount().ToString("N0");
     ViewBag.RegisteredUsers = _userService.GetTotalUsers().ToString("N0");
     return(View(_forumService.GetCategorizedForumContainerFilteredForUser(this.CurrentUser())));
 }
Esempio n. 2
0
        public ViewResult Index()
        {
            ViewBag.OnlineUsers     = _userService.GetUsersOnline();
            ViewBag.TotalUsers      = _userSessionService.GetTotalSessionCount().ToString("N0");
            ViewBag.TopicCount      = _forumService.GetAggregateTopicCount().ToString("N0");
            ViewBag.PostCount       = _forumService.GetAggregatePostCount().ToString("N0");
            ViewBag.RegisteredUsers = _userService.GetTotalUsers().ToString("N0");
            var user = _userRetrievalShim.GetUser(HttpContext);

            return(View(_forumService.GetCategorizedForumContainerFilteredForUser(user)));
        }
Esempio n. 3
0
        public async Task <ViewResult> Index()
        {
            ViewBag.OnlineUsers = await _userService.GetUsersOnline();

            var sessionCount = await _userSessionService.GetTotalSessionCount();

            ViewBag.TotalUsers = sessionCount.ToString("N0");
            ViewBag.TopicCount = _forumService.GetAggregateTopicCount().Result.ToString("N0");
            ViewBag.PostCount  = _forumService.GetAggregatePostCount().Result.ToString("N0");
            var registeredUsers = await _userService.GetTotalUsers();

            ViewBag.RegisteredUsers = registeredUsers.ToString("N0");
            var user = _userRetrievalShim.GetUser();

            return(View(await _forumService.GetCategorizedForumContainerFilteredForUser(user)));
        }
Esempio n. 4
0
        public async Task <ViewResult> Index()
        {
            ViewBag.OnlineUsers = await _userService.GetUsersOnline();

            var sessionCount = await _userSessionService.GetTotalSessionCount();

            ViewBag.TotalUsers = sessionCount.ToString("N0");
            ViewBag.TopicCount = _forumService.GetAggregateTopicCount().Result.ToString("N0");
            ViewBag.PostCount  = _forumService.GetAggregatePostCount().Result.ToString("N0");
            var registeredUsers = await _userService.GetTotalUsers();

            ViewBag.RegisteredUsers = registeredUsers.ToString("N0");
            var user = _userRetrievalShim.GetUser();

            ViewBag.SitemapUrl    = this.FullUrlHelper("Index", SitemapController.Name);
            ViewBag.OnlineMembers = await _tibiaService.GetOnlineMembers();

            return(View(await _forumService.GetCategorizedForumContainerFilteredForUser(user)));
        }