コード例 #1
0
        public ActionResult ChangeUserSex(FormCollection f)
        {
            bizUsers u = new bizUsers();
            Users model = u.Get(f["username"].Trim());
            if (model == null)
                return Content("���û�������");
            if (f["sex"] == "black")
                u.ChangeUserColor(f["username"].Trim(), UserName, f["sex"]);
            else
                u.ChangeSex(f["username"].Trim(), UserName, byte.Parse(f["sex"]));

            (new bizAdminLog()).Add("Ϊ" + f["username"].Trim() + "�������Ա�", f["username"].Trim(), UserName);
            return Content("�Ա��޸ijɹ���");
        }