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

@ -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}",