title: How do I insert items in a multi submit form that contains also an array
body: <p>I would like to insert data into a few table with a single submit.
  The problem is 2 of the table should be a few items (cooking  steps , Ingredients for the recipe )
  The # of items in this 2 tables is unknown so I will use same ajax or any script Lib. But the problem is on the inserting to the db (db.add  &amp; db.save)
  each of  his 2 tables have one to many relation (one recipe many ….)</p>
  
  <pre><code>[HttpPost]
  public ActionResult Create(Recipe recipe, Category category, Ingredient ingredient ,  intrusion [] intrusion )
  {
  
    int UserNumber = (int)Membership.GetUser().ProviderUserKey;
    recipe.UserId = UserNumber;
    recipe.AddedDate = DateTime.Now;
    //intrusion  intrusion [] =new List&lt;intrusion&gt;  ;
  
    //var entity=new intrusion();
    //TryUpdateModel(entity ,new[] {"intrusion.IntrusionStep","intrusionId"});
  
    if (ModelState.IsValid)
    {
    //   var results = db.intrusion.Add(entity);
      db.category.Add(category);
      db.recipe.Add(recipe);
      db.ingerdient.Add(ingredient);
      db.intrusion.Add(intrusion);
      db.SaveChanges();
  
      return RedirectToAction("Index");
    }
  
    return View(recipe);
  }
  </code></pre>