title: How do you get post value in .NET Core
body: <p>I have a Customer controller that has these 2 action methods.</p>
  
  <pre><code>    [HttpGet]
      public IActionResult Create()
      {
          ViewBag.Title = "Customers";
          return View();
      }
  
      [HttpPost]
      public IActionResult Create(IFormCollection form)
      {
          return View();
      }
  </code></pre>
  
  <p>I also created a Customer view.</p>
  
  <pre><code>&lt;form class="form-horizontal" method="post" action="/Customer/Create"&gt;
      &lt;div class="form-group"&gt;
          &lt;label class="col-lg-2 control-label"&gt;FirstName *&lt;/label&gt;
          &lt;div class="col-sm-6"&gt;
              &lt;input type="text" class="form-control" required name="FirstName"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;label class="col-lg-2 control-label"&gt;LastName *&lt;/label&gt;
          &lt;div class="col-sm-6"&gt;
              &lt;input type="text" class="form-control" required name="LastName"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>How do I get the post values? Every time I submit the form it goes to the <code>[HttpGet]</code> and I want to use the <code>[HttpPost]</code>. I'm new to ASP.NET Core so sorry for the simple question.</p>