Add blog index with pagination

This commit is contained in:
Robert Marshall 2019-04-28 11:06:15 +01:00
parent 68fa2cf1c7
commit b8f371e3e8
5 changed files with 78 additions and 6 deletions

View file

@ -57,6 +57,13 @@ namespace Website
app.UseMvc(routes =>
{
routes.MapRoute(
name: "blogPages",
template: "blog/{action}/{page:int}",
new { controller = "Blog", action = "Page", page = 1 });
routes.MapRoute(
name: "blogView",
template: "blog/view/{url}");
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");