From 246111df630e68365835e0901653098c0f9fe0c7 Mon Sep 17 00:00:00 2001 From: Robert Marshall Date: Sat, 4 May 2019 17:40:20 +0100 Subject: [PATCH] Fix resharper complaints --- Website/Startup.cs | 4 ++-- Website/Views/Blog/Entry.cshtml | 2 +- Website/Views/Blog/Page.cshtml | 2 +- Website/Views/Home/Index.cshtml | 2 +- Website/Views/Shared/_Layout.cshtml | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Website/Startup.cs b/Website/Startup.cs index 6d6adf4..e129e69 100644 --- a/Website/Startup.cs +++ b/Website/Startup.cs @@ -60,11 +60,11 @@ namespace Website routes.MapRoute( name: "blogPages", template: "blog/{action}/{page:int}", - new { controller = "Blog", action = "Page", page = 1 }); + defaults: new { controller = "Blog", action = "Page", page = 1 }); routes.MapRoute( name: "blogView", template: "blog/view/{url}", - new { controller = "Blog", action = "Entry"}); + defaults: new { controller = "Blog", action = "Entry"}); routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); diff --git a/Website/Views/Blog/Entry.cshtml b/Website/Views/Blog/Entry.cshtml index 39227f2..0409de9 100644 --- a/Website/Views/Blog/Entry.cshtml +++ b/Website/Views/Blog/Entry.cshtml @@ -1,4 +1,4 @@ -@model BlogPostViewModel; +@model BlogPostViewModel @{ ViewData["Title"] = Model.Title; diff --git a/Website/Views/Blog/Page.cshtml b/Website/Views/Blog/Page.cshtml index f4df8b4..d168620 100644 --- a/Website/Views/Blog/Page.cshtml +++ b/Website/Views/Blog/Page.cshtml @@ -1,4 +1,4 @@ -@model BlogViewModel; +@model BlogViewModel @{ ViewData["Title"] = "Blog"; diff --git a/Website/Views/Home/Index.cshtml b/Website/Views/Home/Index.cshtml index bb55efb..c666c49 100644 --- a/Website/Views/Home/Index.cshtml +++ b/Website/Views/Home/Index.cshtml @@ -1,4 +1,4 @@ -@model BlogPostViewModel; +@model BlogPostViewModel @{ ViewData["Title"] = "Home"; diff --git a/Website/Views/Shared/_Layout.cshtml b/Website/Views/Shared/_Layout.cshtml index c321301..e74d672 100644 --- a/Website/Views/Shared/_Layout.cshtml +++ b/Website/Views/Shared/_Layout.cshtml @@ -88,6 +88,7 @@
Gallery
+