Exemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            Response response = PaymentTypeController.InsertPaymentType(paytypeTxt.Text);

            if (response.successStatus == true)
            {
                Response.Write("<script>alert('PaymentType has been added')</script>");
                Response.Redirect(Request.RawUrl);
            }
            else
            {
                lblError.Text = response.message;
            }
        }