title: Dynamic Add Row to MVC View then pass to controller
body: <p>Okay, so I've tried a ton of things, none of which I'm very familiar with, and I can't seem to figure out exactly how to get done what I need to do. It seems like a simple task, and I'm sure someone has done it!</p>
  
  <p>In essence, I need to create a form that has the ability to create more fields that will bind to the model, or even just pass to the controller on submit.</p>
  
  <p>First, I have a model that is pretty straightforward. Something like:</p>
  
  <pre><code>public class Account
  {
      public string Organization { get; set; }
      public List&lt;UserModel&gt; Users { get; set; }
  }
  public class UserModel
  {
      public string UserFirstName { get; set; }
      public string UserLastName { get; set; }
      public string UserEmailAddress { get; set; }
      public bool UserIsAdmin { get; set; }
  }
  </code></pre>
  
  <p>My view is a simple signup form that takes all the input necessary to create an account. It needs to have these fields, but also be able to have a link that says "add User" and ajax in another row with first name, last name, email, and isAdmin flag.</p>
  
  <p>This is where I get stuck. I'm thinking I need something with a partial view and a custom binding to a controller as the data gets passed in, but I can't figure out how to pass in an object that contains all the users so I can iterate through it.</p>
  
  <p>If anyone could even <strong>point</strong> me in the right direction, I would be very happy.</p>
  
  <p>-Lost</p>