Fixing LinkController in the sample

This commit is contained in:
harshgMSFT 2014-05-09 16:09:51 -07:00
parent 9eaa62125f
commit 00c30791ea
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ namespace MvcSample.Web
public string Get() public string Get()
{ {
// Creates a url like: http://localhost:58195/Home/Details#CoolBeans! // Creates a url like: http://localhost:58195/Home/Create#CoolBeans!
return Url.RouteUrl("CoolBeansRoute", new { controller = "Home", action = "Details" }, protocol: "http", host: null, fragment: "CoolBeans!"); return Url.RouteUrl(null, new { controller = "Home", action = "Create" }, protocol: "http", host: null, fragment: "CoolBeans!");
} }
public string Link1() public string Link1()