My project follows the following template:
InmyController
Ihavethefollowing:
InoticedthatIcouldbeusingthisActionResult
dynamically.Myview
istyped.
Iwouldliketoknowifthereisawaytopassthetypeofmyview
promodelorsomemeansofdynamicallyreceivingmodel
inmycontroller
.Beingintheexample,mymodel
"Homogenous Group".
In summary, my intention is to pass the name of model
and somehow, create something that returns the model filtered by name in my ActionResult
, as in the case of System.Object
"Example" of what I want:
var Nome = "GrupoHomogeneoEF";
var bdModel = new (Nome)(contexto);