Ejemplo n.º 1
0
        /// <summary>
        /// 检查重名检查角色名是否可用
        /// </summary>
        /// <param name="roleName">角色名</param>
        /// <param name="id">角色ID</param>
        /// <returns>true:是,false:否</returns>
        public JsonResult CheckRoleName(string roleName, int id)
        {
            RoleBll bll    = new RoleBll();
            var     result = bll.CheckRoleName(roleName, id);

            return(Json(result));
        }