add Business Logic to controller c# 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.