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.
Table - Produce
ProduceID, Produce Name, Produce Type
1 Banana Fruit
2 Apple Fruit
3 Okra Vegetable
4 Onion Vegetable
View Output
Fruit
checkbox Banana
checkbox Apple
Vegetable
Checkbox Okra
checkbox Onion
The selected values from the checkbox need to send to the controller.
Appreciate any help.