I know how to create views in MVC.
But I am searching for the idea to dynamically add a create type view for which I will pass the scafolding Model as parameter to the controller method. I cannot go manually but I want to add view during some controller action.
I want to have a code something look like...
public class SomeController : Controller
{
public void SomeAction(string modelName)
{
//add view of create type
}
}
return View(modelName)?modelName.cshtml?