I need to know how to pass the values of the inputs checkboxes
to the action Edit
, I need to pass the properties Checked
and Id
and store in a list of type Photo
. Note that the controller that is running is not of the same type as the view , this control is of gallery
, the model gallery
has a property of type List<Photo>
.
Below are the prints .
Model :
View:
Controller :
Printofthescreentounderstandthecontext: