Skip to content

Commit 52688d9

Browse files
committed
adding webroutes file
1 parent 527fd88 commit 52688d9

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎NuGet/WebRoutes.cs.pp‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Web;
4+
using System.Web.Routing;
5+
using JsRouting.Core;
6+
7+
namespace $rootnamespace$
8+
{
9+
// TODO: add the following line to your Application_Start method in your Global.asax
10+
// new WebRoutes().Routes.AddTo(RouteTable.Routes);
11+
12+
public class WebRoutes : RouteSource
13+
{
14+
protected override void Map(IList<Tuple<string, Route>> routes)
15+
{
16+
routes.MapRoute("Default",
17+
"{controller}/{action}/{id}",
18+
new { controller = "Home", action = "Index", id = "" });
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)