title: Can not send list of objects from view to controller using tag helper in asp.net core 2.2
body: <p>I have the following view and I want to send list of object from view to controller and I used asp-for tag helper for data binding but action in controller receives null</p>
  <pre><code>                                 @model IEnumerable&lt;GoodsList&gt;
                                  &lt;form method=&quot;post&quot; asp-action=&quot;SubmitList&quot; asp-controller=&quot;Submit&quot;&gt;
                                  &lt;table class=&quot;table table-bordered&quot;&gt;
                                      &lt;thead&gt;
                                          &lt;tr&gt;
                                              &lt;th width=&quot;2%&quot;&gt;number&lt;/th&gt;
                                              &lt;th width=&quot;20%&quot;&gt;Name&lt;/th&gt;
                                              &lt;th width=&quot;20%&quot;&gt;Brand&lt;/th&gt;
                                              &lt;th width=&quot;20%&quot;&gt;Quantity&lt;/th&gt;
                                              &lt;th width=&quot;20%&quot;&gt;Scale&lt;/th&gt;
                                              &lt;th width=&quot;8%&quot;&gt;operation&lt;/th&gt;
                                          &lt;/tr&gt;
                                      &lt;/thead&gt;
                                      &lt;tbody&gt;
                                          @foreach (var item in Model)
                                          {
                                              &lt;tr&gt;
                                                  &lt;td&gt;@item.Number&lt;/td&gt;
                                                  &lt;td&gt;&lt;input type=&quot;text&quot; readonly=&quot;readonly&quot; asp-for=&quot;@item.GoodsName&quot; class=&quot;form-control&quot; /&gt;&lt;/td&gt;
                                                  &lt;td&gt;&lt;input type=&quot;text&quot; readonly=&quot;readonly&quot; asp-for=&quot;@item.BrandName&quot; class=&quot;form-control&quot; /&gt;&lt;/td&gt;
                                                  &lt;td&gt;&lt;input type=&quot;text&quot; readonly=&quot;readonly&quot; asp-for=&quot;@item.Quantity&quot; class=&quot;form-control&quot; /&gt;&lt;/td&gt;
                                                  &lt;td&gt;&lt;input type=&quot;text&quot; readonly=&quot;readonly&quot; asp-for=&quot;@item.ScaleName&quot; class=&quot;form-control&quot; /&gt;&lt;/td&gt;
                                                  &lt;td&gt;
                                                      &lt;select class=&quot;form-control&quot; asp-items=&quot;@(new SelectList(item.Status,&quot;Id&quot;,&quot;Name&quot;))&quot;&gt;
                                                      &lt;/select&gt;
                                                  &lt;/td&gt;
                                              &lt;/tr&gt;
                                          }
                                          &lt;tr&gt;
                                              &lt;td colspan=&quot;6&quot;&gt;
                                                  &lt;textarea class=&quot;form-control&quot; rows=&quot;3&quot; readonly=&quot;readonly&quot; cols=&quot;5&quot;&gt;@Model.Select(s =&gt; s.Description).First()&lt;/textarea&gt;
                                              &lt;/td&gt;
                                          &lt;/tr&gt;
                                      &lt;/tbody&gt;
                                  &lt;/table&gt;
                                  &lt;a class=&quot;btn btn-primary&quot;&gt;Back&lt;/a&gt;
                                  &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; class=&quot;btn btn-success&quot; style=&quot;width:auto&quot;&gt;
                              &lt;/form&gt;
  </code></pre>
  <p>And Here is my controller which receives null</p>
  <pre><code>  [HttpPost]
      //It receives null
      public IActionResult SubmitList(IEnumerable&lt;GoodsList&gt; model)
       {
          return View();
      }
  </code></pre>
  <p>And the Model</p>
  <pre><code>public class GoodsList
  {
      public GoodsList()
      {
          Status = new List&lt;ApprovalStatus&gt;();
      }
      public int Number { get; set; }
      public string GoodsName { get; set; }
      public string BrandName { get; set; }
      public int? Quantity { get; set; }
      public string UserName { get; set; }
      public string RankName { get; set; }
      public int? RequestId { get; set; }
      public string ScaleName { get; set; }
      public IList&lt;ApprovalStatus&gt; Status { get; set; }
  }
  </code></pre>
  <p>Any solution?</p>
  <p>Thanks in advance</p>