Interviews1 answer
How can you use helper classes with combination of Model?
Posted Jun 9, 2016, 11:57 PM EDT.NET
1 Answer
<% foreach (var item in Model) { %>
<%: Html.ActionLink(“Edit”, “Edit”, new { id=item.AlbumId }) %> |
<%: Html.ActionLink(“Delete”, “Delete”, new { id=item.AlbumId })%>
<%: Html.Truncate(item.Title, 25) %>
<%: Html.Truncate(item.Artist.Name, 25) %>
<%: item.Genre.Name %>
<% } %>
Posted Jun 9, 2016, 11:57 PM EDT