Ejemplo 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);
        }
Ejemplo 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");
            }
        }