When I try to render a partial view whose model type is specified as:
@model dynamic
by using the following code:
@{Html.Re
I had the same problem & in my case this is what I did
@Html.Partial("~/Views/Cabinets/_List.cshtml", (List)ViewBag.cabinets)
and in Partial view
@foreach (Shop cabinet in Model) { //... }