Normally, when we add scatffolded item to implement CRUD functionality in MVC with EF, there will be 'Edit', 'Detail' and 'Delete' actionlink for each records/rows from table. How I would like to implement CRUD is that index view has one set of 'Edit', 'Detail' and 'Delete' actionlink or button at the top, apply checkbox for each record/row in the table. In this way, user can select one record/row (just one selection for my project) and 'Edit', 'Detail' and 'Delete' to selected record/row. I was only able to find checkbox which gets the ID for selected records with one submit button (in my case, it has to have multiple button for 'Edit', 'Detail', 'Delete' and etc) that pass the IDs to one of the action. After retrieving ID for selected record/row I would like to have multiple option for which action to pass ID to (to 'Edit', 'Detail', 'Delete' and etc) Any tip or advise will help. Thank you.
Aucun commentaire:
Enregistrer un commentaire