Reputation: 576
i've a question to ask for my mvc project...
i have two controllers: Giurisprudenza
e GiurisprudenzaNode
, these controllers implement an index with the list of elements and a crud system to add/edit/remove elements. In the Girusiprudenza
view page every element has a button that return you into the relative GiurisprudenzaNode
page, with the list of elements contained into the primary element.
I would like to insert a label next to every element of the list in Giurisprudenza
that say how many elements there are into that single primary element, but i don't know how to do that count... Anybody can help me?
Upvotes: 0
Views: 31
Reputation: 47
for this you dont need two controllers or two different view . For this you need to follow below steps.
Let me know if you need code snippet for this. View Model from MSDN
Upvotes: 1