public JsonResult CircleUserList(int id, int pageIndex) { PageResultModel model = new PageResultModel(); IUserSocialCircleBLL userSocialCircleBll = BLLFactory <IUserSocialCircleBLL> .GetBLL("UserSocialCircleBLL"); model.Result = userSocialCircleBll.GetPageList(c => c.SocialCircleId == id && c.ApplyStatus == 1, pageIndex, ConstantParam.PAGE_SIZE).Select(c => new CircleUserModel { Id = c.Id, UserId = c.ApplyUser.Id, userid = GetCurrentUser().Id, CreateId = c.SocialCircle.CreaterId, UserName = c.ApplyUser.UserName, UserImg = string.IsNullOrEmpty(c.ApplyUser.HeadPath) ? "/Images/WeiXin/header_default.png" : c.ApplyUser.HeadPath, }).Distinct(new CircleUserComparer()).ToList(); model.Total = userSocialCircleBll.Count(c => c.SocialCircleId == id && c.ApplyStatus == 1); return(Json(model, JsonRequestBehavior.AllowGet)); }