public ActionResult Notification(Guid id) { List <Like> likes = new List <Like>(); List <Comment> comments = new List <Comment>(); List <Follower> followers = new List <Follower>(); foreach (Tweet tweet in ts.GetActive().Where(x => x.AppUserID == id)) { if (ls.GetActive().Any(x => x.TweetID == tweet.ID)) { foreach (Like like in ls.GetActive().Where(x => x.TweetID == tweet.ID)) { likes.Add(like); } } if (cs.GetActive().Any(x => x.TweetID == tweet.ID)) { foreach (Comment comment in cs.GetActive().Where(x => x.TweetID == tweet.ID)) { comments.Add(comment); } } } if (fs.GetActive().Any(x => x.DAppUserID == id)) { foreach (Follower follower in fs.GetActive().Where(x => x.DAppUserID == id)) { followers.Add(follower); } } return(View(Tuple.Create <AppUser, List <Like>, List <Comment>, List <Follower> >(aus.GetByID(id), likes, comments, followers))); }