@model test.Models.ViewModel.ProductView

@Html.ActionLink("Sortuj wg Nazwy","ProductsSortByName")<br />
@Html.ActionLink("Sortuj wg Ceny","ProductsSortByPrice")

<h2>Produkty</h2>
@foreach (var p in Model.Products)
{
    Html.RenderPartial("Product", p);
}

@using (Html.BeginForm("ShowAddingProduct", "Product"))
{
    <input type="submit" value="Dodaj nowy Produkt" />
}
