public ActionResult Index() { var statuses = statusRepository.AllFriendStatuses(currentUser.UserId); StatusModel statusModel = new StatusModel() { User = currentUser, AllStatuses = statuses }; HashSet <int> currentStatusIds = statuses.Select(s => s.Status.StatusId).ToHashSet(); Session["currentStatusIds"] = currentStatusIds; ViewBag.StatusClass = "HomeStatus"; return(View(statusModel)); }