public String providerAddress(Long id) { this.address = providerFacade.getProvider(id).getAddress(); return "providerAddress"; }
public String deleteProviderFromCatalog(Long id) { providerFacade.deleteProvider(id); this.providers = providerFacade.getAllProviders(); return "providers"; }
public String findProvider(Long id) { this.provider = providerFacade.getProvider(id); return "provider"; }
public String catalogProvider() { this.providers = providerFacade.getAllProviders(); return "providers"; }
public String createProvider() { this.address = new Address(street, city, zipcode, country); this.provider = providerFacade.createProvider(name, phoneNumber, email, vatin, address); return "provider"; }