public static Boolean DeletePaymentTypeController(int paymentTypeId, out string errorMessage)
 {
     errorMessage = "";
     if (ViewPaymentTypeHandler.CheckPaymentReferencesHandler(paymentTypeId) == false)
     {
         ViewPaymentTypeHandler.DeletePaymentTypeHandler(paymentTypeId);
         return(false);
     }
     else
     {
         errorMessage = "Payment type has been used in another table";
         return(true);
     }
 }
Ejemplo n.º 2
0
 public static List <DetailPaymentType> FetchDataPaymentType()
 {
     return(ViewPaymentTypeHandler.FetchDataPaymentType());
 }
 public static List <PaymentType> GetAllPaymentTypeController()
 {
     return(ViewPaymentTypeHandler.getAllPaymentTypes());
 }
Ejemplo n.º 4
0
 public static List <PaymentType> getAllPaymentType()
 {
     return(ViewPaymentTypeHandler.getAllPaymentType());
 }