Routes and controllers gone through
This commit is contained in:
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user