02242caf29b4eb3d83da2691c12ca86b742fe8f8
Guides/MVC-Integration.md
| ... | ... | @@ -352,7 +352,25 @@ namespace Sample_MVCApp |
| 352 | 352 | ``` |
| 353 | 353 | |
| 354 | 354 | |
| 355 | -###Step 10. Copy RegisterRoutes in MvcApplication class from Global.asax.cs and put it in MvcApplication class of the project’s Global.asax.cs |
|
| 355 | +###Step 10. Copy RegisterRoutes in MvcApplication class from Global.asax.cs of mvc5r3 and put it in MvcApplication class of the project’s Global.asax.cs |
|
| 356 | + |
|
| 357 | +Copy the below class from Global.asax.cs of mvc5r3 |
|
| 358 | +```csharp |
|
| 359 | +public static void RegisterRoutes(RouteCollection routes) { |
|
| 360 | + routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); |
|
| 361 | + routes.MapRoute("IzendaResources", "Reporting/Resources/{*resource}", new { controller = "IzendaStaticResources", action = "Index" }); |
|
| 362 | + routes.MapRoute("IzendaJsResources", "{*js}", new { controller = "IzendaStaticResources", action = "Index" }, new { irc = new IzendaResourceConstraint("js") }); |
|
| 363 | + routes.MapRoute("IzendaCssResources", "{*css}", new { controller = "IzendaStaticResources", action = "Index" }, new { irc = new IzendaResourceConstraint("css") }); |
|
| 364 | + routes.MapRoute("IzendaPngResources", "{*png}", new { controller = "IzendaStaticResources", action = "Index" }, new { irc = new IzendaResourceConstraint("png") }); |
|
| 365 | + routes.MapRoute("IzendaGifResources", "{*gif}", new { controller = "IzendaStaticResources", action = "Index" }, new { irc = new IzendaResourceConstraint("gif") }); |
|
| 366 | + routes.MapRoute("IzendaReporting", "{controller}/{action}/{id}", new { controller = "Reporting", id = UrlParameter.Optional }); |
|
| 367 | + routes.MapRoute("StarterKitDefault", "{controller}/{action}/{id}", new { controller = "Reporting", action = "ReportList", id = UrlParameter.Optional }); |
|
| 368 | + routes.MapRoute("HomeDefault", "{*pathInfo}", new { controller = "Home", action = "Index", id = UrlParameter.Optional }); |
|
| 369 | + } |
|
| 370 | +``` |
|
| 371 | + |
|
| 372 | + |
|
| 373 | + |
|
| 356 | 374 | |
| 357 | 375 | Copy RegisterRoutes in MvcApplication class from Global.asax.cs and put it in MvcApplication class of the project’s Global.asax.cs |
| 358 | 376 |