From db0f8d3b1f812ab9b8d4cd3194ccae1c9d72a581 Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Wed, 13 Nov 2019 15:29:56 +0300 Subject: [PATCH] Updated controllers urlsand fixed layout --- MyWebsite/Controllers/HomeController.cs | 4 +++- MyWebsite/MyWebsite.csproj.user | 3 ++- MyWebsite/Startup.cs | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/MyWebsite/Controllers/HomeController.cs b/MyWebsite/Controllers/HomeController.cs index bdabeef..f6d048d 100644 --- a/MyWebsite/Controllers/HomeController.cs +++ b/MyWebsite/Controllers/HomeController.cs @@ -8,14 +8,16 @@ namespace MyWebsite.Controllers { // TODO: Add more specific OpenGraph meta tags // TODO: Create custom error page - // TODO: Update Projects.json and Gallery.json + // TODO: Update Projects.json and Gallery.json (Add this site, BSI) // TODO: Complete About page // TODO: Localize application // TODO: Make authorization system and ability to update website through GUI // TODO: Consider a database connection + // TODO: Add more detailed parsing of artwork descriptions public IActionResult Index() => View(); + [HttpGet("Error")] [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() => View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); diff --git a/MyWebsite/MyWebsite.csproj.user b/MyWebsite/MyWebsite.csproj.user index ff18027..0033d77 100644 --- a/MyWebsite/MyWebsite.csproj.user +++ b/MyWebsite/MyWebsite.csproj.user @@ -4,11 +4,12 @@ MvcControllerEmptyScaffolder root/Controller 600 - False + True False False False 600 FolderProfile + \ No newline at end of file diff --git a/MyWebsite/Startup.cs b/MyWebsite/Startup.cs index d2d5160..0af09b1 100644 --- a/MyWebsite/Startup.cs +++ b/MyWebsite/Startup.cs @@ -51,7 +51,7 @@ namespace MyWebsite { routes.MapRoute( name: "default", - template: "{controller=Home}/{action=Index}"); + template: "{controller=Home}/{action=Index}/{id?}"); }); } }