public ActionResult List() { var list = privateMessageRepository.List().ToList().Select((m, index) => new { id = m.MessageId, name = m.Name, hash = CLib.CSecurity.MD5Helper.GetMD5(m.Email ?? "*****@*****.**").ToLower(), content = m.Content, status = m.Status.Description, publishDate = m.PublishDate }); return(Json(new { messages = list }, JsonRequestBehavior.AllowGet)); }