I just started learning MVC. I am trying to create somthing like user control which was in web forms. For these purposes in MVC I created action in my controller. This action returns some view with specific html markup, lets call it "MVC control". And I use this "MVC control" from any views this way: @Html.Action(controllerName, actionName)
Now I need that some button in my "MVC control" returns some List of onject that can be used in the view in which this "MVC control" is located.
Could you please advise me how can archive this goal?
View Complete Post