When I search the internet, I found that some people say that the logic should go in the ViewModel
and some people say it should be go in Controller
in asp.net with mvc
applications.
So I cannot come to a conclusion.
- What is the official (the creator's of asp.net with MVC) recommendation for this?
- What are the reasons to decide it? (with
explanations
andexamples
) ?