/// <summary> /// 查询所有的角色 /// </summary> /// <returns></returns> public ActionResult GetRoleAll() { List <Roles> list = RolesBLL.GetAll(); var listed = from s in list select new { s.RoleID, s.RoleName, s.RoleDesc }; return(Json(listed)); }