Exemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            int payId = Int32.Parse(Request.QueryString["payId"]);

            Debug.Print(paytypeTxt.Text);
            Response response = PaymentTypeController.UpdatePaymentType(payId, paytypeTxt.Text);

            if (response.successStatus == true)
            {
                Response.Write("<script>alert('Product updated successfully')</script>");
                Response.Redirect(Request.RawUrl);
            }
            else
            {
                lblError.Text = response.message;
            }
        }