title: Exclude specific items from list when sending POST form
body: <p>I have a
  <code>List&lt;TelephoneVm&gt;</code>
  in my ViewModel. View dynamically creates POST form with table rows based on items in that list.
  I don't want to send all items that are in list back to controller. Only the ones with specific property set to <code>true</code>. How can I achieve this?</p>
  <p>View:</p>
  <pre><code>&lt;form method=&quot;post&quot; asp-action=&quot;Index&quot; asp-controller=&quot;Test&quot;&gt;
  ...
              @for (int i = 0; i &lt; Model.Objects.Count; i++)
              {
                  &lt;tr&gt;
                      &lt;th scope=&quot;row&quot;&gt;@i&lt;/th&gt;
                      &lt;td&gt;@Html.DisplayFor(x =&gt; Model.Objects[i].Number)&lt;/td&gt;
                      @Html.HiddenFor(x =&gt; Model.Objects[i].Id)
                      @Html.HiddenFor(x =&gt; Model.Objects[i].Number)
                      &lt;td&gt;@Html.CheckBoxFor(x =&gt; x.Objects[i].Show)&lt;/td&gt;
                  &lt;/tr&gt;
              }
  ...
  &lt;/form&gt;
  
  
  </code></pre>
  <p>When submitting form, entire list is sent, and I want to send list with items where <code>Show</code> property is checked.</p>