Is it possible that two different views use the same controller?
I have very complex controller that displays some data. Now I need to display this data (which is retrieved using ajax) in two partial views because I want to place them on different positions in layout.
Is it possible that two different views use the same controller? I have very
Share
the View() function can be passed arguments, for instance:
There are a few more overloads too. Does this fit the bill?
If not, why not partial views, for instance, given this model:
And this action:
And this view:
I can have two partial views using the same model:
List:
Icon:
Would that work?