title: How to Post Partial View Data?
body: <p>Any input much appreciated :)</p>
  
  <p>I want to know one thing whether I can post multiple partial views data in MVC?(means i want to update partial views data to DATABASE)</p>
  
  <p>Here is the Example:</p>
  
  <p>Model:-</p>
  
  <pre><code>public class PassengerViewModel
  {
      public List&lt;PassengerModel&gt; Passengers { get; set; }
      public ContactModel Contact { get; set; }
  }
  </code></pre>
  
  <p>Controller:-</p>
  
  <pre><code>[RequiredAuthentication]
      public ActionResult Passenger()
      {
          var passengrViewMdl = new PassengerViewModel()
          {
              Contact = new ContactModel(),
              Passengers = psngrService.LoadPassengers(Convert.ToInt32(Session["LPORefNO"]))
          };
          return View(passengrViewMdl);
      }
      [HttpPost]
      public ActionResult Passenger(PassengerViewModel passengerViewModel)
      {
          Here i want to update Passengers &amp; Contact information
      }
  </code></pre>
  
  <p>View:-</p>
  
  <pre><code>@model QR.LPO.Core.Models.PassengerViewModel
  @{
  ViewBag.Title = "Add Passengers";
  }
  @using (Html.BeginForm())
  {
  @Html.Partial("_Passenger", Model.Passengers);
  @Html.Partial("_PassengerContact", Model.Contact);
  &lt;input type="submit" value="Submit" /&gt;
  }
  </code></pre>
  
  <p>Thanks.</p>