public async Task <ActionResult> Bookmarks() { var bookmarkData = await UserGuiHelper.GetBookmarksAggregatedDataAsync(this.HttpContext.Session.GetUserID()); var viewData = new ThreadsData() { ThreadRows = bookmarkData }; return(View(viewData)); }
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)); }