Exemplo n.º 1
0
        public ActionResult AddRole(Role role, string permissionIds)
        {
            var ret = roleApp.AddRole(role, permissionIds.Split(','));

            if (ret > 0)
            {
                return(Success("添加成功"));
            }
            return(Error("添加失败"));
        }