-
-
Save richardgrantserverless/b272a8f5cd5cf6dc56a45fdf2987b2f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Boolean delete(String id) throws IOException { | |
Product product = null; | |
// get product if exists | |
product = get(id); | |
if (product != null) { | |
logger.info("Products - delete(): " + product.toString()); | |
this.mapper.delete(product); | |
} else { | |
logger.info("Products - delete(): product - does not exist."); | |
return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment