in your main view (Mycars
), use @Html.Action()
you will create the corresponding Action in your controller (you can set the attribute [ChildActionOnly]
, and it can be of type PartialViewResult
You will then create the (partial) View
corresponding to that PartialViewResult
, and... that's it.