Esempio n. 1
0
        private void FreezeUser(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            int uid   = int.Parse(context.Request.Params["uId"].ToString());
            int state = int.Parse(context.Request.Params["state"].ToString());

            bll_u = new BLL.UsersBLL();
            int isdel = bll_u.FreezeUser(uid, state);

            if (isdel > 0)
            {
                context.Response.Write("ok");
                context.Response.End();
            }
            else
            {
                context.Response.Write("no");
                context.Response.End();
                return;
            }
        }