title: Looking for a way to implement a polymorphic view in ASP.NET Core
body: <p>I'm working on an ASP.NET MVC Core web app that would have a lot of similar views. Each view is just a simple form that has a list of label&amp;control pairs.
  An "Object" editor template has been built in order to generate the content of such views automatically based on view model properties.
  Each view would basically have just one line of code:
      @Html.EditorFor(m => m)
  Each view model is derived from a base class.</p>
  
  <p>Is there a way to get rid of duplicate views and controller actions?</p>
  
  <p>Ideally, I'd like to have just one view where the model is the base model class and one controller action that would receive that base model.</p>