The code is getting messy. In this challenge, you will refactor it.
Open the challenge
Place the datastore and every CRUD operation inside the
- Place business and decision-making logic inside the
- Make the
Servicelayer the middleman. Because the
Servicelayer handles the business logic, it should make calls to the
Make sure the controller's only concern is managing the model and presenting the view.
Run your code to make sure everything still works.