public boolean removeCustomer ( Long customerId ) { Customer customer = getCustomer ( customerId ) ; if ( customer != null ) { customerRepository . delete ( customer ) ; return true ; } return false ; }
Remove customer from the repository