/// <summary> /// 添加一个权限分配 /// </summary> /// <param name="groupID"></param> /// <returns></returns> public bool AddGrant(int groupID) { if (_actionid == -1) { return(false); } ActionDAL dal = new ActionDAL(connectionString); return(dal.AddPermissionGrant(_actionid, groupID)); }