public IActionResult Forum() { string chatRoom = TempData["chatRoom"].ToString(); var sortedMessages = messageRepo.SortMessagesByDate(chatRoom); ViewBag.BackgroundStyle = "pageContainer7"; ViewBag.SelectedChat = chatRoom; ViewBag.TitleText = TempData["pageTitleText"]; return(View("Forum", sortedMessages)); }