title: Model with child collections in ASP.NET MVC 3
body: <p>I'm trying to learn ASP.NET MVC 3 coming from a web forms background. I'm trying to work out what would be the MVC way of implementing what I want, and the actual difficultly is that I am not sure what to google!</p>
  
  <p>What I can't get my head around is how to work with more complex models. All the tutorials on the asp.net site work around fairly simple data objects, and consequently rather simple editors to manage the data with them.</p>
  
  <p>Imagine a model for a hypothetical Party booking application:-</p>
  
  <pre>
  public class Party
  {
      public string PartyName {get;set;}
      public DateTime PartyDate {get; set; }
  
      public ICollection&lt;Guest&gt; Guests {get; set;}
  }
  
  public class Guest
  {
      public string Name {get; set;}
      public string EmailAddress {get; set;}
  }
  </pre>
  
  <p>The key here is the collection of guests.</p>
  
  <p>What I want to understand how to achieve, is how to implement a controller+view which would allow me to create a Party and also add new Guests at the same time, in a single page (and preferably with the guest add/remove functionality in-page in ajax).</p>
  
  <p>In a similar app in asp.net web forms, it would be straight forward to put the functionality for the guests in an UpdatePanel. But I am not sure how to go about implementing this in MVC.</p>
  
  <p>If anyone has any tips, pointers, or links to articles that discuss similar topics, i'd be very greatful,</p>
  
  <p>Thanks</p>
  
  <p>slip </p>