public static void createPaymentType(string name, out string errorMessage)
        {
            PaymentType payment = getPaymentbyName(name);

            if (payment == null)
            {
                bool success = checkConstraintPaymentType(name, out errorMessage);
                if (success == true)
                {
                    errorMessage = "Success";
                    PaymentTypeHandler.createPaymentType(name);
                }
            }
            else
            {
                errorMessage = "Payment Type is Already Registered";
            }
        }
Ejemplo n.º 2
0
 public static void requestInsertName(string name)
 {
     PaymentTypeHandler.createPaymentType(name);
 }