1
0

Updated controllers urlsand fixed layout

This commit is contained in:
Michael Gordeev
2019-11-13 15:29:56 +03:00
parent 0128a52410
commit db0f8d3b1f
3 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -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 });
+2 -1
View File
@@ -4,11 +4,12 @@
<Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Controller</Controller_SelectedScaffolderCategoryPath>
<WebStackScaffolding_ControllerDialogWidth>600</WebStackScaffolding_ControllerDialogWidth>
<WebStackScaffolding_IsLayoutPageSelected>False</WebStackScaffolding_IsLayoutPageSelected>
<WebStackScaffolding_IsLayoutPageSelected>True</WebStackScaffolding_IsLayoutPageSelected>
<WebStackScaffolding_IsPartialViewSelected>False</WebStackScaffolding_IsPartialViewSelected>
<WebStackScaffolding_IsReferencingScriptLibrariesSelected>False</WebStackScaffolding_IsReferencingScriptLibrariesSelected>
<WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected>
<WebStackScaffolding_ViewDialogWidth>600</WebStackScaffolding_ViewDialogWidth>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
<WebStackScaffolding_LayoutPageFile />
</PropertyGroup>
</Project>
+1 -1
View File
@@ -51,7 +51,7 @@ namespace MyWebsite
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}");
template: "{controller=Home}/{action=Index}/{id?}");
});
}
}