MovieBase_Project/MovieBase/App_Start/RouteConfig.cs
2019-05-29 21:33:34 +02:00

24 lines
561 B
C#

using System.Web.Mvc;
using System.Web.Routing;
namespace MovieBase
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
//routes.MapRoute(
// name: "TopWatched",
// url: "TopWatched",
// defaults: new { controller = "TopWatched", action = "GetTopWatched" }
// );
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}