Category
Actually, the Category
logic will be identical to its respective part in the Core module. So, you may use that page as a guide, if you wish. But as a summary, we should
Define its CreateDTO by copying the
name
field from the users' CreateDTOCopy the contents of the
UsersService
to its own service and adjustIn
findOne()
, fetch acategory
with itsproducts
In
remove()
, check if thecategory
has associatedproducts
before proceeding
Commit - Implementing category logic
Last updated