title: How to post multiselect option and save in Db using ASP.Net MVC?
body: <p>I am trying to post multiselect option and save it in Db. I did try few options but same did not work.</p>
  <p><code>Client</code> model class:</p>
  <pre><code>public string OwnerName { get; set; }
  
  public string UnitNumber { get; set; }
  
  public int AreaId { get; set; }   // This is a foreign key
  public string AreaName { get; set; }  // This will display dropdown list
  </code></pre>
  <p>Controller action method - I am using FormCollection to collect the AreaId from the view to post in <code>Client</code> model class:</p>
  <pre><code>public ActionResult ClientDeal(Client model, FormCollection formCollection)
  {
      string selectedArea = formCollection[&quot;AreaId&quot;];
  }
  </code></pre>
  <p>Here is the view with the field I am having trouble with</p>
  <pre><code>&lt;div class=&quot;form-group col-md-4&quot;&gt;
      &lt;label class=&quot;control-label col-md-8 font-weight-bold&quot;&gt;Area&lt;/label&gt;
      &lt;div class=&quot;col-md-10&quot;&gt;
          @Html.DropDownListFor(model =&gt; model.AreaId, Model.Areas, new { @class = &quot;form-control selectpicker select&quot;, @multiple = &quot;multiple&quot; })
          @Html.ValidationMessageFor(model =&gt; model.Areas, &quot;&quot;, new { @class = &quot;text-danger&quot; })
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Thank you in advance</p>