title: sending a model in mvc3 using html.beginform
body: <p>I have an HttpPost and HttpGet version of the action method Rate() :</p>
  
  <p><a href="http://pastebin.com/embed_js.php?i=6x0kTdK0" rel="nofollow">http://pastebin.com/embed_js.php?i=6x0kTdK0</a></p>
  
  <pre><code>    public ActionResult Rate(User user, Classified classified)
      {
          var model = new RatingModel
                  {
                      CurrentUser = user,
                      RatedClassified = classified,                        
                  };
          return View(model);
      }
      [HttpPost]
      public ActionResult Rate(RatingModel model)
      {
          model.RatedClassified.AddRating(model.CurrentUser, model.Rating);
          return RedirectToAction("List");
      }
  </code></pre>
  
  <p>The view that HttpGet Rate() returns:</p>
  
  <pre><code>@model WebUI.Models.RatingModel
  @{
      ViewBag.Title = "Rate";
  }
  Rate @Model.RatedClassified.Title
  @using(Html.BeginForm("Rate","Classified", FormMethod.Post))
  {
      for (int i = 1; i &lt; 6; i++)
      {
          Model.Rating = i;
          &lt;input type="submit" value="@i" model="@Model"&gt;&lt;/input&gt;
      }
  } 
  </code></pre>
  
  <p>I'm trying to find out to send a Model through the Form to the Post method, and my thinking was that the value "model" in the submit button's tag would be the parameter to do so, however null is being passed through if i breakpoint inside of the Post method. The for loop is trying to create 5 buttons to send the proper rating.</p>
  
  <p>Thanks </p>