title: POST <ul> with <li> elements from MVC view page
body: <p>So I have a list, where useer can add any number of items. In other words, I have a <code>&lt;ul&gt;</code> and variable length of <code>&lt;li&gt;</code> elements. 
  <br>
  Variable length <code>&lt;li&gt;</code> elements means, user adds <code>&lt;li&gt;</code> elements in runtime, if she/he is done, she/he submits the form. So I don't know how many <code>&lt;li&gt;</code> elements are there.
  <br>
  Something like this :</p>
  
  <pre><code>&lt;form asp-controller="MyController" asp-action="AddList" method="post"&gt;
      &lt;ul id="myUL"&gt;
          &lt;li&gt;item1&lt;/li&gt;
          &lt;li&gt;item2&lt;/li&gt;
          /*...*/
          &lt;li&gt;itemN&lt;/li&gt;
      &lt;/ul&gt;
      &lt;button type="submit" class="btn btn-default"&gt;New List&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I add <code>&lt;li&gt;</code> elements dynamically with <code>JavaScript</code> if user clicks a button, like this:</p>
  
  <pre><code>function newElement() {
      var li = document.createElement("li");
      var inputValue = document.getElementById("myInput").value;
      var t = document.createTextNode(inputValue);
      li.appendChild(t);
      document.getElementById("myUL").appendChild(li);
  }
  </code></pre>
  
  <p>My controller's method (<code>AddList</code>) looks like this:</p>
  
  <pre><code>[HttpPost]
  [AllowAnonymous]
  [ValidateAntiForgeryToken]
  public async Task&lt;IActionResult&gt; NewShoppingList(object list)
  {
      // I don't know how to accept that list
  
  }
  </code></pre>
  
  <p>But this way my parameter <code>list</code> is <code>null</code>. How can I get that <code>&lt;ul&gt;</code> with some <code>&lt;li&gt;</code> elements?</p>