Exemplo n.º 1
0
        protected void NewPaymentbtn_Click(object sender, EventArgs e)
        {
            String type = Typetxt.Text;

            String messageError = "";

            messageError = PaymentTypeController.insert(type);


            if (messageError != "")
            {
                insLabelError.Text = messageError;
            }
            else
            {
                PaymentTypeHandler.add(type);
                insLabelError.Text = "Payment type has been registered";
            }
        }