Hi everyone,
Here is a way that we are currently spitting out some HTML to our view.
foreach (var reportGroup in managedReportGroup.CustomerTags)
{ %>
<%= reportGroup.Name %>
<%
}
Is there something that I can do like this? (This won't work for me)
Action<ManagedReportGroups> handlesReportGroup = delegate(ManagedReportGroups managedReportGroup)
{
foreach (var reportGroup in managedReportGroup.CustomerTags)
{
Html.Encode(reportGroup.Name);
}
};
The reason would be to cut down on the aligator brackets and clean up my code.
Thanks,
Mike