Routes and controllers gone through

This commit is contained in:
2019-01-15 22:40:53 +01:00
parent c7d11d8b4c
commit 88641f2a20
7 changed files with 10861 additions and 1 deletions

View File

@ -23,7 +23,7 @@ namespace Vidly
"~/Scripts/bootstrap.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/bootstrap-lumen.css",
"~/Content/site.css"));
}
}

View File

@ -13,6 +13,14 @@ namespace Vidly
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapMvcAttributeRoutes();
//routes.MapRoute(
// "MoviesByReleaseDate",
// "movies/released/{year}/{month}",
// new {controller = "Movies", action = "ByReleaseDate"},
// new { year = @"\d{4}", month = @"\d{2}" });
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",