public ActionResult AddRole(AddRoleModel model, int id = 0)
        {
            if (ModelState.IsValid)
            {
                if (id <= 0)
                {
                    var r = Manage.AddPermissionRole(model.Name, model.Sort, model.Description, 0);
                    return Json(r);
                }

                return Json(YunClient.Instance.Execute(new UpdateRoleRequest
                {
                    Description = model.Description,
                    Id = id,
                    Name = model.Name,
                    Sort = model.Sort,
                }, Member.Token).Result);
            }

            return Json(-1);
        }
        public ActionResult AddRole(AddRoleModel model, int id = 0)
        {
            if (ModelState.IsValid)
            {
                if (id <= 0)
                {
                    var r = YunClient.Instance.Execute(new AddRoleRequest
                    {
                        Name = model.Name,
                        Sort = model.Sort,
                        Description = model.Description,
                        RoleType = 0
                    }, Token).Result;

                    return Json(r);
                }

                return Json(YunClient.Instance.Execute(new UpdateRoleRequest
                {
                    Description = model.Description,
                    Id = id,
                    Name = model.Name,
                    Sort = model.Sort,
                }, Token).Result);
            }

            return Json(-1);
        }