Inside my view I currently have
@{
Func<Website.Security.User[], object> renderUserList = @<text>
<div class="span4">
@*<h2>@title</h2>*@
<ul>
@foreach (var user in item)
{
<li>@user.UserName - <a href="/Config/User/Edit/@user.UserName">Edit</a></li>
}
</ul>
</div>
</text>;
}
@renderUserList(Model.AdminUsers)
How can I rework this so that the renderUserList expression can take in a second input for the section title?
As I understand, you trying to create helper: ASP.NET MVC 3 and the @helper syntax within Razor