restTemplate.delete("http://localhost:8080/crm/customer/" + customer.getId());
customers.remove(customer);
}
public void addCustomer(String firstName, String lastName) {
Customer customer = new Customer();
customer.setFirstName(firstName);
customer.setLastName(lastName);
customer.setSignupDate(new Date());
Integer id = restTemplate.postForObject("http://localhost:8080/crm/customers", customer, Integer.class);
customer.setId(id);
customers.add(customer);
}