Updated controllers urlsand fixed layout
This commit is contained in:
@@ -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 });
|
||||
|
||||
@@ -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>
|
||||
@@ -51,7 +51,7 @@ namespace MyWebsite
|
||||
{
|
||||
routes.MapRoute(
|
||||
name: "default",
|
||||
template: "{controller=Home}/{action=Index}");
|
||||
template: "{controller=Home}/{action=Index}/{id?}");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user