View - dynamic model
问题 I am attempting to create a dynamic table in my view that will be dynamically generated depending on the type of model I send to the view. So, I basically have two actions: public IActionResult People() { List<Person> lst = new List<Person>(); // Add data... return View("Table", lst); } public IActionResult Teams() { List<Team> lst = new List<Team>(); // Add data... return View("Table", lst); } Now I would like to have the same view that will show a list of people / teams, so that I don't