From 1cb8a049f28bf60625fee1af0381d3a096e057fe Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Wed, 5 Mar 2014 14:40:37 -0800 Subject: [PATCH] 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. --- samples/MvcSample.Web/Startup.cs | 2 +- samples/MvcSample/Startup.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/MvcSample.Web/Startup.cs b/samples/MvcSample.Web/Startup.cs index 274d9718a0..e470afad3a 100644 --- a/samples/MvcSample.Web/Startup.cs +++ b/samples/MvcSample.Web/Startup.cs @@ -26,7 +26,7 @@ namespace MvcSample.Web var endpoint = ActivatorUtilities.CreateInstance(mvcServices.Services); - router.Add(new TemplateRoute( + router.Routes.Add(new TemplateRoute( endpoint, "{controller}/{action}", new Dictionary(StringComparer.OrdinalIgnoreCase) { { "controller", "Home" }, { "action", "Index" } })); diff --git a/samples/MvcSample/Startup.cs b/samples/MvcSample/Startup.cs index b01e7ee5b4..62eb3077bd 100644 --- a/samples/MvcSample/Startup.cs +++ b/samples/MvcSample/Startup.cs @@ -40,12 +40,12 @@ namespace MvcSample var endpoint = ActivatorUtilities.CreateInstance(mvcServices.Services); - router.Add(new TemplateRoute( + router.Routes.Add(new TemplateRoute( endpoint, "{controller}", new Dictionary(StringComparer.OrdinalIgnoreCase) { { "controller", "Home" } })); - router.Add(new TemplateRoute( + router.Routes.Add(new TemplateRoute( endpoint, "{controller}/{action}", new Dictionary(StringComparer.OrdinalIgnoreCase) { { "controller", "Home" }, { "action", "Index" } }));