aspnetcore/test/WebSites/WebApiCompatShimWebSite
Ryan Nowak 6875ee55d3 Remove Magic Link Generation
This change resolves #3512 and #3636 by removing 'magic' link generation
and adding an extension method to add routes to areas correctly using the new
pattern. This is pretty much exactly the same as how MapWebApiRoute works.

For site authors, we recommend adding area-specific routes in a way that
includes a default AND constraint for the area. Put your most specific
(for link generation) routes FIRST.

Ex:

  routes.MapRoute(
      "Admin/{controller}/{action}/{id?}",
      defaults: new { area = "Admin" },
      constraints: new { area = "Admin" });

The bulk of the changes here are to tests that unwittingly relied on the
old behavior.
2015-11-30 11:24:23 -08:00
..
Controllers Limit [FromServices] to apply only to parameters 2015-11-17 16:41:04 -08:00
Models
wwwroot
ActionSelectionFilter.cs
Startup.cs Remove Magic Link Generation 2015-11-30 11:24:23 -08:00
WebApiCompatShimWebSite.xproj
project.json Remove Microsoft.AspNet.Server.IIS from test Websites 2015-10-24 08:04:00 -07:00
readme.md

readme.md

WebApiCompatShimWebSite

This web site illustrates how to configure and use WebApiCompatShim to get Web API 2.* like behavior. Features which are used include but are not limited to action results, action selection and parameter binding.