Пример #1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            BasicInfoBll   bll   = new BasicInfoBll();
            BasicInfoModel model = new BasicInfoModel();

            model.Name   = context.Request["name"];
            model.Gender = context.Request["gender"];
            model.Age    = int.Parse(context.Request["age"]);
            model.Email  = context.Request["email"];
            if (bll.Insert(model))
            {
                context.Response.Write("ok");
            }
            else
            {
                context.Response.Write("notok");
            }
        }