public int showPaymentTypes() {
   PaymentTypeRepository repo = new PaymentTypeRepository();
   return repo.showPaymentTypes();
 }
 public void registerType(String what) {
   PaymentType type = new PaymentType(what);
   PaymentTypeRepository repo = new PaymentTypeRepository();
   repo.save(type);
 }