There is an entity that has public List<DayOfWeek> DefaultDaysOfWeek
.
I want to bind this list to a set of 7 checkboxes respectively in the view.
I have not found a default way to do something similar to:
@Html.EditorFor(model => model.DefaultDaysOfWeek, new { htmlAttributes = new { @class = "form-control" } })
I have also tried the CheckBoxList(For) framework.
I believe the reason none of this has worked is because I cannot access this enumeration in the View.