title: ASP.NET MVC: Html Helper Form Seems to be Incorrect
body: <p>all, I could use your help again. I'm currently attempting to use an HTML helper to create a from that will pass my model into the <code>Operations</code> controller's method, <code>TaskEdit</code>, seen below:</p>
  
  <pre><code>[HttpPost]
  public ActionResult TaskEdit(TaskViewModel viewModel, bool? embedded)
  {
      // code
  }
  </code></pre>
  
  <p>In the view, I am using the following Razor code to attempt to produce the form:</p>
  
  <pre><code>@using (Html.BeginForm("TaskEdit", "Operations", new { embedded = true, viewModel = Model }, FormMethod.Post, new { @class = "form-horizontal"  }))
  {
      // form code
  }
  </code></pre>
  
  <p>This didn't actually give me my instance of the model - it only passed the class back as if it were a static class. So I tried the following instead:</p>
  
  <pre><code>@using (Html.BeginForm("TaskEdit", "Operations", new { embedded = true, id = Model.TaskId }, FormMethod.Post, new { @class = "form-horizontal"  }))
  {
      // form code
  }
  </code></pre>
  
  <p>And the following form was produced (which confused me):</p>
  
  <pre><code>&lt;form action="/&lt;sitename&gt;/Operations/TaskEdit/0?embedded=True" class="form-horizontal" method="post"&gt; &lt;!-- Form code --&gt; &lt;/form&gt;
  </code></pre>
  
  <p>Not only was I assuming that the form action would be more along the lines of <code>"/&lt;sitename&gt;/Operations/TaskEdit?id=0&amp;embedded=True"</code>, but when I try to submit the form, I get a server error about "No parameterless constructor defined for this object." Help?</p>