2
My project follows the following model:
In my Controller I have the following:

I noticed you might be using this ActionResult dynamically. My view is typical.
I wonder if there’s a way to pass the kind of mine view pro model or some way to dynamically receive the model in my controller. Being in the example, man model "Groupomogeneus".
In short, my intention is to pass the name of the model and somehow create something that returns the model filtered by name in my ActionResult, as in the case of a System.Object
"Example" of what I want:
var Nome = "GrupoHomogeneoEF";
var bdModel = new (Nome)(contexto);

What is the purpose of this?
– Leonel Sanches da Silva
@Romaniomorrisonmendez Reuse the same Actionresult for more than one model
– Rafael Barbosa
Tipado can’t do it. The Models have a common ancestor?
– Leonel Sanches da Silva
Yes yes. Just for the record, I can change my architecture to fit in some way to be able to do what I want
– Rafael Barbosa