<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %> <% foreach (Brand b in Model.Brands ) { %>

<%= Html.ActionLink( b.Name, "Brand", new { id = b.Name }, new { @class="actionlink" } ) %>

<%= Html.Encode( b.Slogan ) %>

<% foreach (ProductCategory pc in b.Categories ) { %>

<%= Html.ActionLink( pc.Name, "ProductCategory", new { brandid= b.Name, pcid = pc.Reference }, new { @class="actionlink" } ) %>

<% foreach (Product p in pc.Products ) { %>

<%= Html.ActionLink( p.Name, "Product", new { id = b.Name, pc = pc.Reference , pref = p.Reference }, new { @class="actionlink" } ) %>

<%= p.Description %> <% if (p.Images !=null) foreach (ProductImage i in p.Images ) { %> <%=i.Alt%> <% } %>

<% } %> <% } %>
<% } %>