public ActionResult LoadFollower(long userId, int pageIndex = 1) { long accountId = Convert.ToInt64(Session["userId"]); List <UserInfo> userList = new List <UserInfo>(); var followerList = FollowService.GetFollowerPagerList(userId, 12, pageIndex); foreach (var followerId in followerList) { var user = UserService.GetUserById(followerId); userList.Add(new UserInfo { Id = user.Id, FullName = user.FullName, UserName = user.UserName, IsFollowing = FollowService.IsFollowing(accountId, followerId), Biography = user.Biography.Length > 50 ? user.Biography.Substring(0, 50) + "..." : user.Biography, ProfilePic = user.ProfilePic }); } return(Json(new AjaxResult { Status = "OK", Data = userList })); }