Your goal should be to get your business logic in one place. In my experience, if you can do this, your code base will be easier to develop, maintain, and modify.
Model-view-controller is a way to get to this point, although in classic MVC business logic is in the (domain) model, while application logic is in the controller.
Application logic : if the next user inspection date is within a week (or expired), display the schedule check screen, otherwise display the "Inspection history" screen.
Business logic : restaurants that have not previously inspected inspection should be checked every six months, seafood restaurants should be checked every year, and all other restaurants should be checked every two years. Given that this last inspection of the restaurant, when does their next inspection require?
Jeff sternal
source share