예제 #1
0
        public async Task <ActionResult> Active()
        {
            var systemData = await _cache.GetSystemDataAsync();

            var aggregatedActiveThreadsData = await ThreadGuiHelper.GetActiveThreadsAggregatedData(this.HttpContext.Session.GetForumsWithActionRight(ActionRights.AccessForum),
                                                                                                   systemData?.HoursThresholdForActiveThreads ?? 0,
                                                                                                   this.HttpContext.Session.GetForumsWithActionRight(ActionRights.ViewNormalThreadsStartedByOthers),
                                                                                                   this.HttpContext.Session.GetUserID());

            var viewData = new ThreadsData()
            {
                ThreadRows = aggregatedActiveThreadsData
            };

            return(View(viewData));
        }