title: Pass multiple parameters in Html.BeginForm MVC
body: <p>I have something like this:</p>
  
  <pre><code>public ActionResult Create(int clubid)
  {
    var club = db.Clubs.Single(c=&gt;c.Id == clubid);
    ViewBag.Club = club;
    Competition comp = db.Competitions.Create();
    return View(comp)
  }
  </code></pre>
  
  <p>and in my .cshtml:</p>
  
  <pre><code>@Model Models.Competition
  ...
  @Using(Html.BeginForm())
  {
    ...
    &lt;input type="submit" value="Save" /&gt;
  }
  </code></pre>
  
  <p>This works fine with the following Post Action:</p>
  
  <pre><code>[HttpPost]
  public ActionResult Create(Competition comp)
  {
    if (ModelState.IsValid){...}
  
    return RedirectToAction(...);
  
  }
  </code></pre>
  
  <p>However, I want to pass an additional parameter from the <code>@ViewBag.Club</code> object:</p>
  
  <pre><code>[HttpPoSt]
  public ActionResult Create(int clubid, Competition comp){...}
  </code></pre>
  
  <p>How do I code this in the <code>BeginForm</code>?</p>