title: MVC 4 - Checkbox List dynamically bind with database table
body: <p>I am not not so familiar with MVC? Can anyone share pseudo code in MVC on how to implement checkboxes dynamically bind with a database table? This is how my table is defined, and this is the output that I am trying to get in the view.</p>
  
  <pre><code>Table - Produce
    ProduceID, Produce Name, Produce Type
      1             Banana        Fruit
      2             Apple         Fruit
      3             Okra          Vegetable
      4             Onion         Vegetable
  </code></pre>
  
  <p>View Output</p>
  
  <pre><code>Fruit
     checkbox Banana
     checkbox Apple
  Vegetable
     Checkbox Okra 
     checkbox Onion
  </code></pre>
  
  <p>The selected values from the checkbox need to send to the controller.</p>
  
  <p>Appreciate any help.</p>