where we write business logic in mvc code example
Example: where we write business logic in mvc
Business Logic goes to Model part in MVC.
Role of Model is to contain data and business logic. Controller on the other hand is responsible to receive user input and decide what to do.