title: Adding textbox dynamically and save values to the database in asp.net mvc
body: <p>I would like to add text box dynamically by clicking add button , can delete text box and finally can save the list values from the text boxes .
  My model class</p>
  
  <pre><code>public class CustModel
  {
      public List&lt;Cust&gt; CustList { get; set; }
  }
  
  public class Cust
  {
      public string Name { get; set; }
  }
  My controller class
  
  
  public class HomeController : Controller
      {
          private DB _entities;
  
          public HomeController()
          {
              _entities = new DbEntities();
          }
  
          public ActionResult Index()
          {
                  return View(_customers);
  
          }
          [HttpPost]
          public ActionResult Index(CustModel model)
          {
                  // save to the database
                  return View();
  
          }
     } 
  </code></pre>
  
  <p>I want to know .cshtml code . Or any other suggestion to submit list item to the database .</p>