Ejemplo n.º 1
0
        private void SaveSettings()
        {
            string revertMessage = Request.Params["revertMessage"];
            string scratch = Request.Params["scratch"];
            string theme = Request.Params["theme"];
            string id = Request.Params["userId"];
            string headImg = Request.Params["headImg"];
            string userName = Request.Params["userName"];

            Users user = new Users();
            bool success = false;
            if (userName != null && userName != "")
            {
                success = user.ChangeSettings(revertMessage, scratch, theme, id, GetImg(headImg), userName);
            }
            else
            {
                success = user.ChangeSettings(revertMessage, scratch, theme, id, GetImg(headImg));
            }
            if (success)
            {
                WriteMessage("�������óɹ���");
            }
            else
            {
                WriteMessage("��������ʧ�ܣ�");
            }
        }