This is a TEMPORARY fix to unblock WebFX samples.

More changes are coming to the routing API surface, so this will be
cleaned up with a final version soon.
This commit is contained in:
Ryan Nowak 2014-03-05 14:40:37 -08:00
parent e87f8c372c
commit 1cb8a049f2
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ namespace MvcSample.Web
var endpoint = ActivatorUtilities.CreateInstance<RouteEndpoint>(mvcServices.Services);
router.Add(new TemplateRoute(
router.Routes.Add(new TemplateRoute(
endpoint,
"{controller}/{action}",
new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) { { "controller", "Home" }, { "action", "Index" } }));

View File

@ -40,12 +40,12 @@ namespace MvcSample
var endpoint = ActivatorUtilities.CreateInstance<RouteEndpoint>(mvcServices.Services);
router.Add(new TemplateRoute(
router.Routes.Add(new TemplateRoute(
endpoint,
"{controller}",
new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) { { "controller", "Home" } }));
router.Add(new TemplateRoute(
router.Routes.Add(new TemplateRoute(
endpoint,
"{controller}/{action}",
new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) { { "controller", "Home" }, { "action", "Index" } }));