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"; } }
public static void add(String type) { PaymentTypeHandler.add(type); }