Esempio n. 1
0
        protected void AddcustomerInfo()
        {
            customer customer = new customer();

            customer.Name = Context.Request.Form["Name"];
            customer.Age  = Context.Request.Form["Age"];
            customerBll customerBll = new customerBll();

            customerBll.AddCustomer(customer);
        }
Esempio n. 2
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            customer customer = new customer();

            customer.Name = context.Request["txtName"];
            customer.Age  = context.Request["txtAge"];

            customerBll customerBll = new customerBll();

            if (customerBll.AddCustomer(customer) > 0)
            {
                context.Response.Write("YES");
            }
            else
            {
                context.Response.Write("NO");
            }
        }