- needs to return the updated object, through parameter the object is not updated
- updated jar
Signed-off-by:Roland Häder <roland@mxchange.org>
* Adds given category data from request to database
*
* @param category Category instance
+ * @return Updated category instance
* @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given title is already used
* @throws org.mxchange.jshopcore.exceptions.CannotAddCategoryException If the category cannot be added
*/
- public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException;
+ public Category doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException;
}
* Adds given product data from request to database
*
* @param product Product instance
+ * @return Updated product instance
* @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
* @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If something unexpected happened
*/
- public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
+ public Product doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
}