title: How to edit multiple models in a single Razor View
body: <p>I am new to MVC3, I have an multiple models like <code>BussinessDetails</code>,<code>ContactPerson</code>,<code>ServiceArea</code>,<code>Address</code> and many more models. I have a single view page where shared view pages like <code>Contacts</code>,<code>BusinessDetails</code>,<code>Address</code>,<code>ServiceArea</code> etc.these are all in tabs. They have there own models.</p>
  
  <p>My problem is that how to edit multiple models in a same edit view page. Before sending this post I take the help of the MVC3 "Music Store" example but there is only one model <code>ALBUM</code> and they give edit operation for one model if there is one or more model how I shall edit in the same view page.</p>
  
  <p>I have already made a parent business specification class. This is from MVC "Music Store"</p>
  
  <pre><code>public ActionResult Edit(int id) {
      Album album = db.Albums.Find(id);
      ViewBag.GenreId = new SelectList(db.Genres, "GenreId", "Name", album.GenreId);
      ViewBag.ArtistId = new SelectList(db.Artists, "ArtistId", "Name", album.ArtistId);
      return View(album);
  }                                                        
  
  [HttpPost]
  public ActionResult Edit(Album album) {
      if (ModelState.IsValid) {
          db.Entry(album).State = EntityState.Modified;
          db.SaveChanges();
          return RedirectToAction("Index");
      }
  
      ViewBag.GenreId = new SelectList(db.Genres, "GenreId", "Name", album.GenreId);
      ViewBag.ArtistId = new SelectList(db.Artists, "ArtistId", "Name", album.ArtistId);
      return View(album);
  }                                                                   
  </code></pre>
  
  <p>In <code>HTTP POST</code> there is only on model <code>ALBUM</code> if there is more models how i am perform edit operation on multiple models and view?</p>