<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"  
         Inherits="ViewPage<SportsStore.Models.ProductsListViewModel>" %> 
<%@ Import Namespace="SportsStore.Domain.Entities" %> 
<%@ Import Namespace="SportsStore.Models" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 
    Sklep sportowy : <%: Model.CurrentCategory ?? "Wszystkie produkty" %> 
</asp:Content> 
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 
  <% foreach(var product in Model.Products) { %> 
     <% Html.RenderPartial("ProductSummary", product); %> 
  <% } %> 
  <div class="pager"> 
<%: Html.PageLinks(Model.PagingInfo,  
     x => Url.Action("List", new {page=x, category=Model.CurrentCategory})) %> 
  </div> 
</asp:Content> 

