title: Create View With One-Many Relationship
body: <p>I have 2 simple models: </p>
  
  <pre><code>public class Country
  {    
      public int ID { get; set; }
      public string Name { get; set; }
  
      public virtual ICollection&lt;Region&gt; Region { get; set; }
  }
  
  public partial class Region
  {    
      public int ID { get; set; }
      public string Name { get; set; }
      public int CountryID { get; set; }
  
      public virtual Country Country { get; set; }
  }
  </code></pre>
  
  <p>Is it possible to have a single page to handle the creation of a country whereby the user inputs the country with multiple regions and then only posts to the server? </p>
  
  <p>I've seen an implementation <a href="https://stackoverflow.com/questions/17613414/mvc-create-view-when-there-is-one-to-many-relationship-in-model">here</a> where you create a custom ViewModel with numbered properties (Region1, Region2, Region3, etc) but it's limiting, any suggestions?</p>
  
  <p>(I know AngularJS can be used to do this however I have no experience in this space as of yet.)</p>
  
  <p>Thanks</p>