1
0
mirror of https://github.com/rudollee/LearningMVC.git synced 2026-08-17 03:12:56 +00:00

Ch. 20 Views

This commit is contained in:
wook
2017-04-13 20:56:04 +09:00
parent 950d5f778f
commit f22761fe5c
14 changed files with 488 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace Views
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}