Hello,
I'm trying to do a foreach inside of a panelbar, lika the code further down. But i keep getting an error Compiler Error Message: CS1593: Delegate 'System.Action' does not take 1 arguments. Some help would be appreciated:)
panelbar.Add().Text("Soprutter")
.Content(
@<div>
<table class="table-hover">
<thead>
<tr>
<th>Soprutter <a onclick="editGarbageRoute(@Model.ID)" href="#garbageModal" style="display:inline-block;margin-left:5px;" data-toggle="modal" class="tooltips small button icon green" title="Ă„ndra soprutter" ><i class="icon-pencil"></i></a>
</th>
</tr>
</thead>
<tbody>
@foreach(var item in Model.GarbageRoutes)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Description)
</td>
</tr>
}
</tbody>
</table>
</div>);
I'm trying to do a foreach inside of a panelbar, lika the code further down. But i keep getting an error Compiler Error Message: CS1593: Delegate 'System.Action' does not take 1 arguments. Some help would be appreciated:)
panelbar.Add().Text("Soprutter")
.Content(
@<div>
<table class="table-hover">
<thead>
<tr>
<th>Soprutter <a onclick="editGarbageRoute(@Model.ID)" href="#garbageModal" style="display:inline-block;margin-left:5px;" data-toggle="modal" class="tooltips small button icon green" title="Ă„ndra soprutter" ><i class="icon-pencil"></i></a>
</th>
</tr>
</thead>
<tbody>
@foreach(var item in Model.GarbageRoutes)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Description)
</td>
</tr>
}
</tbody>
</table>
</div>);