Skip to content

Instantly share code, notes, and snippets.

@wayne-o
Created October 30, 2012 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wayne-o/3983112 to your computer and use it in GitHub Desktop.
Save wayne-o/3983112 to your computer and use it in GitHub Desktop.
@using BrightonSausageCoEcomms.Infrastructure
@model BrightonSausageCoEcomms.Models.CategoriesListViewModel
@{
ViewBag.Title = "title";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>title</h2>
<a href="/admin/categories/add">Add category</a>
<ul>
@for (int i = 0; i < Model.Categories.Count; i++)
{
<li>@Model.Categories[i].Name</li>
}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment