Add blog index with pagination
This commit is contained in:
parent
68fa2cf1c7
commit
b8f371e3e8
5 changed files with 78 additions and 6 deletions
|
@ -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?}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue