Just like an application's classes and objects, should my controllers have a single responsibility?
Example.
I have my controllerCliente
, which has all the relationships with my model Cliente
.
I also have the model Contato
.
It would be right for me to have my actions ContatoPorCliente
, ExcluirContatoCliente
, etc. inside my controller Cliente
? These actions are called in view Cliente
.
My question is why sometimes we have screens that have multiple Tabs in a form. Customer that has Contact, Financial Data, etc ...