title: Model is null with Html.BeginForm() ASP.NET MVC
body: <p>I encountered following problem: <br/>
  user visits site, clicks "Add" and then it's sending back to Controller, Model is retrieved and send to View one more time. Inside view, I check whether Model is not null
  and displays data.</p>
  
  <pre><code>@if (Model != null)
      {
          &lt;div id="appInfo"&gt;
              &lt;table&gt;
                  &lt;tr&gt;
                      &lt;th&gt;@Html.DisplayNameFor(x =&gt; Model.tytul)&lt;/th&gt;
                      &lt;th&gt;@Html.DisplayNameFor(x =&gt; Model.kategoria.nazwa)&lt;/th&gt;
                      &lt;th&gt;@Html.DisplayNameFor(x =&gt; Model.liczba_ocen)&lt;/th&gt;
                      &lt;th&gt;@Html.DisplayNameFor(x =&gt; Model.avg_ocena)&lt;/th&gt;
                      &lt;th&gt;@Html.DisplayNameFor(x =&gt; Model.typ)&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;@Model.tytul&lt;/td&gt;
                      &lt;td&gt;@ViewData["kategoria"]&lt;/td&gt;
                      &lt;td&gt;@Model.liczba_ocen&lt;/td&gt;
                      &lt;td&gt;@Model.avg_ocena&lt;/td&gt;
                      &lt;td&gt;@Model.typ&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/div&gt; 
   &lt;div&gt;
                  @using (Html.BeginForm("Confirm", "Wydawca", new { app = @Model }))
                  {
                      &lt;input type="submit" value="Cofirm it" /&gt;
                  }
              &lt;/div&gt;
  </code></pre>
  
  <p>At the end button "Confirm it" is created and once you click it invokes Confirm Method but app variable is always null. If I set its value to anything but Model it works.</p>
  
  <pre><code>    [HttpPost]
      public ActionResult Confirm(aplikacja app)
      {
          ...
      }
  </code></pre>
  
  <p>While creating button "Confirm it" Model is not null, I checked. Do you happen to know what is going wrong?</p>
  
  <p>Generated html</p>
  
  <pre><code>   &lt;form action="/Wydawca/Confirm?app=Adds.Models.aplikacja" method="post"&gt;      
     &lt;input type="submit" value="Zatwierdź" /&gt;
  </code></pre>
  
  <p> </p>
  
  <p> </p>