public ActionResult PostComment(int postId) { var comments = _commentService.GetCommentByPostId(postId); var items = comments.Select(c => { var model = new CustomerPostCommentModel(); model.Comment = c.MapTo <PostCommentModel>(); model.CustomerId = Convert.ToInt32(c.CreatorUserId); var customer = _customerService.GetCustomerId(model.CustomerId); model.NickName = customer.NickName; model.Avatar = customer.GetCustomerAttributeValue <string>(CustomerAttributeNames.Avatar); return(model); }).ToList(); var post = _postService.GetPostById(postId); ViewBag.Solve = post.Solve; ViewBag.CurrentCustomerID = AbpSession.UserId; return(PartialView(items)); }