title: How to bind multiple check-boxes values to a property of the model in Mvc?
body: <pre><code> @Html.CheckBox("WiFi", @Model.Amenities.Contains("WiFi"))
    @Html.CheckBox("Dining", @Model.Amenities.Contains("Dining"))
  </code></pre>
  
  <p>Using this format I am able to get the values from sql server but not able to bind them with the property. </p>
  
  <p>It seems weird but I entered the values of the attribute Amenities directly into the db. I want to use html helper only.</p>