示例#1
0
        public ActionResult LikeList(int postId)
        {
            var user = (User)Session["User"];


            var profile = profileManager.GetProfileByUserId(user.Id);

            ViewBag.CurrentUserProfile = profile;


            var like = likeManager.GetUserInfoWhoLikeAPost(postId);

            foreach (var likelist in like)
            {
                likelist.UserId.Profile = profileManager.GetProfileByUserId(likelist.UserId.Id);
            }

            ViewBag.LikeList = like;


            return(View("LikeList"));
        }