Model with dynamic data list (add-edit-delete) .net mvc

0

How does mvc work if I want to develop a screen with a form where I have the main data of the model?

Ex. MaterialesViewModel and right here is a data grid that corresponds to a list of the same model MaterialesViewModel that is called MaterialesProveedoresViewModel that I can add, edit or delete and that when making a submit I returned the model complete to be inserted in database.

I have recently worked with MVC and I am currently doing it using sessions where MaterialesProveedoresViewModel is my list in session (to be able to manipulate it add-edit-delete before saving it), but I understand that using sessions is not one of the best practices.

How can I do this using Model , or what other alternative exists?

Thank you.

    
asked by David BM 10.07.2018 в 18:53
source

0 answers