title: C# MVC 4 - Dynamically calling models from a single controller action
body: <p>I have an Admin controller that needs to delete UIDs from about multiple different models. Can I select the model by passing a string? Here is an <strong>example</strong> controller action of what I would like to do (of course this doesn't work):</p>
  
  <pre><code>private ModelEntities db = new ModelEntities();
  
  public ActionResult ConfirmDelete(String ModelNameString, Int32 id)
  {
      ModelNameString data = db.ModelNameString.Find(id);
      return View(data);
  }
  </code></pre>
  
  <p>Are there any other ways to combine standard tasks for all models into a single controller action? Thank you.</p>