Skip to content

Conversation

@lindadqd
Copy link

No description provided.


@PutMapping("/{id}")
public ResponseEntity<String> update(@PathVariable int id, @RequestBody Product product ) {
Product productCheck = productRepository.getOne(id);
Copy link

@ninja-aruna ninja-aruna Aug 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put all this business logic in either the model or repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants