title: ASP.NET MVC Single View for CRUD operation
body: <p>I am working on a ASP.NET MVC project. I have a question about the View in a CRUD operation.</p>
  
  <p>In most of the examples I have seen, separate views for each CRUD operation (e.g. Add, Edit, Delete) are used. Now imagine if I have 100 tables in my database, and each of them requires CRUD operations via a View. Is it best to create these separate Views for each table or create a function that would create these Views for me, such as below?</p>
  
  <pre><code>public ActionResult CreateSubject()
  {
      return View(Model.toList());
  }
  
  public ActionResult EditSubject()
  {
      return View();
  }
  
   public ActionResult DeleteSubject()
  {
      return View();
  }
  </code></pre>