Fix resharper complaints

This commit is contained in:
Robert Marshall 2019-05-04 17:40:20 +01:00
parent 68028b37f2
commit 246111df63
5 changed files with 6 additions and 5 deletions

View file

@ -60,11 +60,11 @@ namespace Website
routes.MapRoute( routes.MapRoute(
name: "blogPages", name: "blogPages",
template: "blog/{action}/{page:int}", template: "blog/{action}/{page:int}",
new { controller = "Blog", action = "Page", page = 1 }); defaults: new { controller = "Blog", action = "Page", page = 1 });
routes.MapRoute( routes.MapRoute(
name: "blogView", name: "blogView",
template: "blog/view/{url}", template: "blog/view/{url}",
new { controller = "Blog", action = "Entry"}); defaults: new { controller = "Blog", action = "Entry"});
routes.MapRoute( routes.MapRoute(
name: "default", name: "default",
template: "{controller=Home}/{action=Index}/{id?}"); template: "{controller=Home}/{action=Index}/{id?}");

View file

@ -1,4 +1,4 @@
@model BlogPostViewModel; @model BlogPostViewModel
@{ @{
ViewData["Title"] = Model.Title; ViewData["Title"] = Model.Title;

View file

@ -1,4 +1,4 @@
@model BlogViewModel; @model BlogViewModel
@{ @{
ViewData["Title"] = "Blog"; ViewData["Title"] = "Blog";

View file

@ -1,4 +1,4 @@
@model BlogPostViewModel; @model BlogPostViewModel
@{ @{
ViewData["Title"] = "Home"; ViewData["Title"] = "Home";

View file

@ -88,6 +88,7 @@
<dt> <dt>
<a href="/gallery"><img src="/images/photo.svg">Gallery</a> <a href="/gallery"><img src="/images/photo.svg">Gallery</a>
</dt> </dt>
</dl>
</nav> </nav>
</div> </div>
</div> </div>