title: ASP.NET I cannot get the model to bring data back to the controller. It is always 0
body: <p>So I have been working on this for a minute and can't figure out why my data is always 0. NumJuror is simply a model to hold the single int I need back from the view.</p>
  <p>My Contollers:</p>
  <pre><code>        [HttpPost]
      public IActionResult Index(NumJuror model)
      {
          return RedirectToAction(&quot;ListPool&quot;, model.numberOfJurors);
      }
  
      [HttpGet]
      public IActionResult ListPool(int numberOfJurors)
      {
          JurySQLDAO jurySQLDAO = new JurySQLDAO();
          JuryPool jury = new JuryPool(); 
          int rows = jurySQLDAO.GetRows();
          RandomID randomID = new RandomID();
          for (int i = 0; i &lt; numberOfJurors; i++)
          {
              Juror juror = new Juror();
              juror = jurySQLDAO.GetJuror(randomID.getRandomID(rows));
              jury.Pool.Add(juror);
          }
  
          return View(jury);
      }
  </code></pre>
  <p>My view looks like this:</p>
  <pre><code>    @model Iudices2._0.Models.NumJuror
  @{
      ViewData[&quot;Title&quot;] = &quot;Index&quot;;
  }
  
  &lt;h2&gt;Jury Selection Portal&lt;/h2&gt;
  &lt;p&gt;Please enter the number of jurors need for this pool:&lt;/p&gt;
  &lt;form asp-controller=&quot;Home&quot; asp-action=&quot;Indexview &quot; method=&quot;post&quot;&gt;
      &lt;p&gt;
          &lt;input type=&quot;number&quot; asp-for=&quot;numberOfJurors&quot;&gt;
      &lt;/p&gt;
      &lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;
  &lt;/form&gt;
  </code></pre>
  <p>I've debugged several times and no matter what I put in the index, model always comes back as 0 but with a valid model state.</p>