Пример #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";
            }
        }
Пример #2
0
 public static void add(String type)
 {
     PaymentTypeHandler.add(type);
 }