79154229

Date: 2024-11-04 04:56:45
Score: 3
Natty:
Report link

I have the same problem too. I just used partial but passed the model with it. partial doc

.CSHTML

@model EntityWithNestedLists

@foreach (var nested in @Model.NestedLists)
{
  <partial name="Shared/_NestedList" model="@nested" />
}

Partial NestedList File:

@model Nested

 <td colspan="2" class="text-center">
   @Html.DisplayNameFor(m => m.Item)
 </td>
Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
Posted by: aRtoo