title: asp.net mvc jquery dialog one-to-many data updates
body: <p>Here is the scenario. I have a view for creating orders.  The view has some header information to be captured like address of customer, delivery mode etc., There is also a grid to show the list of products that the customer has ordered.  When customer wants to add a product, I show the jquery dialog modal which will have the product information.  When I click save on the dialog, I run into few questions.</p>
  
  <ol>
  <li><p>How do I pass the data back to main view and link the product <code>List&lt;Product&gt;</code> data and save it within the Order class?</p></li>
  <li><p>Are there any better way of doing it?  I need the dialog modal instead of going back and forth to different pages.</p></li>
  </ol>