/// <summary>列表数据</summary>
        /// <param name="p">分页器</param>
        public override ActionResult List(CloudPager p = null)
        {
            if (p == null)
            {
                p = new CloudPager();
            }
            String key    = p["key"];
            Int32  menuID = p["menuID"].ToInt();
            var    list   = Button.Search(key, p);
            var    result = PageResult.FromPager(p);

            result.Data = list;
            if (list == null || list.Count == 0)
            {
                return(Json(result, JsonRequestBehavior.AllowGet));
            }
            //是否有menuID参数,有的话需要设置该菜单是否已经拥有该按钮
            if (menuID != 0)
            {
                EntityList <MenuButton> menuButtons = MenuButton.FindAllByMenuID(menuID);
                if (menuButtons != null && menuButtons.Count > 0)
                {
                    foreach (Button button in list)
                    {
                        foreach (MenuButton m in menuButtons)
                        {
                            if (button.ID == m.ButtonID)
                            {
                                button.Selected = true;
                                break;
                            }
                        }
                    }
                }
            }
            return(Json(result, JsonRequestBehavior.AllowGet));
        }