0
I have several reports in the company, and I need to migrate them from webforms to MVC. My question is.. Do I need to create a template for each report? Is that correct? If not, how can I do?
For example:
I have a report that should list the daily movement (production) of a company warehouse employee...the data that will be returned are:
Usuário (Login no sistema):
Nome do Usuário:
Quantidade de requisições atendidas:
Quantidade de itens atendidos:
Today, within my system, I have the User object, would it be interesting to model this report? Since I will only use it in this location.
But in case, I would have to create in a file this Viewmodel? Or I can add it to an existing class in the application?
– Anderson Apdo de Souza
See that the
ProducaoViewModel
is already a class. It is not recommended to have multiple classes in a single file for good practice reasons. I advise in addition to creating a file for her, add a folder "Viewmodels" to group them into onenamespace
.– Leandro Angelo