Hi,
I'm pretty new to MVC and just read an article about helpers. Now I have this code on the View:
<div class="display-label">Ingredients:
<% foreach (var e in Model.Products_Ingredients)
{%>
<%: e.Ingredient.Name%><br />
<%: e.Percentage%>
<%if (e.Percentage != null)
{%>
%
<%}%>
<br />
<%}%>
</div>
How do I go on and create a Helper that would replace that code with something simpler like:
<div class="display-label">Ingredients: <%: MyHelpers.Ingredients %> </div>
Thank you!