public void GetList() { int sellerid = GetInt("sellerid"); int start = GetInt("start"); int limit = GetInt("limit"); var result = CommentHelper.GetPagings(sellerid, CommentType.All, 0, start * limit, limit); var data = new PagResults <object>(); foreach (var item in result.Results) { var user = AccountHelper.GetUser(item.UserId); var feedbackStauts = item.Feedback != null && item.Feedback.Length > 0; var o = new { Id = item.Id, Title = item.Title, Content = item.Content, Feedback = item.Feedback, FeedbackStatus = feedbackStauts ? "已回复" : "未回复", CreateTime = item.CreateTime.ToString("yyyy-MM-dd HH:mm:ss"), Type = EnumHelper.CommentTypeToName(item.Type), UserId = item.UserId, UserName = user.UserName, NickName = user.NickName }; data.Results.Add(o); } data.TotalCount = result.TotalCount; JsonTransfer jt = new JsonTransfer(); jt.AddSuccessParam(); jt.Add("data", data); Response.Write(DesEncrypt(jt).ToLower()); Response.End(); }