2
Dear friends, I have a view containing only @model Projeto.Models.Oc and a form. Within this form, I have buttons that call MODAL, those MODAL possess partialView who owns another form and @model Projeto.Models.Rc, @model Projeto.Models.Pc, etc..
I wanted to know what the deal is for this need, because I believe that these Strong type in view main and in the partialViews are conflicting.
Gypsy, I’m using the Create view as I said above, but in the Edit view, I need to pass the ticket parameter so that partialView is filled in. How can I do this?
– Jhonatan
In this case, you create a Viewmodel, which is a class with the class which was previously declared as
@modelinside, one more Property calling forTicket. In thePOST, Your Controller takes this as a parameter Viewmodel.– Leonel Sanches da Silva