Example #1
0
        protected void InsertPaymentTypeBtn_Click(object sender, EventArgs e)
        {
            string paymentTypeName = TxtPaymentType.Text;
            string errorMessage    = "";

            PaymentTypeController.createPaymentType(paymentTypeName, out errorMessage);
            if (errorMessage != "Success")
            {
                ErrorLbl.Text = errorMessage;
            }
            else
            {
                Response.Redirect("./ViewPaymentType.aspx");
            }
        }