示例#1
0
        /// <summary>
        /// ����������
        /// </summary>
        public void ChangeGroupName()
        {
            string groupName = Request.Params["groupName"];
            string groupId = Request.Params["groupId"];
            string userId = Request.Params["userId"];
            UserGroup userGroup = new UserGroup();

            if (groupName == "����"
                || groupName == "�Լ�"
                || userGroup.ExistGroupByName(groupName, userId) != null)
            {
                WriteMessage("0");
                return;
            }

            if (userGroup.ChangeGroupName(groupId, groupName))
            {// ���������Ƴɹ�
                WriteMessage("���³ɹ���");
            }
            else
            {
                WriteMessage("0");
            }
        }