title: How can I pass multiple radio button value as a Parameter?
body: <p>I have the following code to display <code>IList&lt;string&gt;</code> array in radio button. How can I pass prior month/s?</p>
  <p>In My view i have the following code, currently I only display the selected radio button value</p>
  <pre><code>foreach (var record in Model.Months.Select(x=&gt;$&quot;{x.Substring(4,2)}/{x.Substring(0,4)}&quot;).OrderByDescending(x=&gt;x))
  {
       &lt;div class=&quot;radio col-12&quot;&gt;
          &lt;div class=&quot;row&quot;&gt;
            &lt;div class=&quot;col-5&quot; style=&quot;&quot;&gt;
              @Html.RadioButton(&quot;MonthsAvailable&quot;, record, true, new { id = record, @class = &quot;m-r&quot; })&lt;label&gt;@record&lt;/label&gt;
             &lt;/div&gt;
           &lt;/div&gt;
        &lt;/div&gt;
  }
  </code></pre>
  <p>My Model looks like as follows</p>
  <pre><code>public class MonthsAvailable
   {
          public List&lt;string&gt; Months{ get; set; }       
   }
  </code></pre>
  <p>My action receives</p>
  <pre><code>public async Task&lt;IActionResult&gt; MonthsAvailable(List&lt;string&gt; monthsAvailable)
   {
   ...
   }
  </code></pre>
  <p>My radio button looks like as follows</p>
  <pre><code>When I select 062020 pass only 062020 to the controller, 
  When I select 072020 pass 062020 and 072020, 
  when I select 082020 pass 062020, 072020 and  082020
  when I select 092020 pass 062020, 072020, 082020 and 092020 and etc
  </code></pre>