Do not put presentation concerns in the controllers!

time to read 1 min | 95 words

I thought it would be obvious, but I am currently cleaning up an application that has mixed them in a very annoying way.

I decided to track the reason for this coupling and I found this on the sample controller in ASP.Net MVC:


I am pretty sure that setting the page title is a presentation concern, as such, I don't want to see this in the controller, and I certainly don't want to see it in the base sample from which everyone is going to start.