Package steveonjava.server

Examples of steveonjava.server.Customer


        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);
    }
View Full Code Here


        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);
    }
View Full Code Here

TOP

Related Classes of steveonjava.server.Customer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.