AttributeRouting
AttributeRouting copied to clipboard
Define your routes using attributes on actions in ASP.NET MVC and Web API.
If you have a malformed AttributeRouting Route you get a very ungraceful error. Suppose i have the route: ``` [GET("contents/{page-slug}/{blog-title")] ``` Note the lack of a closing } on blog-title....
We have a route on a simple controller action like so. public class Sitemap { [GET("sitemap.xml")] public ActionResult Index() { ... } } In development it works fine, in IIS...
I couldn't find a forum or other place to ask questions, so I'll ask here. Does this integrate with WebApi 2 now that it has introduced attribute routing of its...
Hi, I'm trying to configure my admin area to a subdomain. I asked here: http://forums.asp.net/p/1966694/5625348.aspx?Re+AttributeRouting+lib+with+subdomain+on+IISExpress Please, if anyone can help, I'd appreciated.
Hi. Is it possible to configure AttributeRouting so that some parameter would be formatted using specific format? For example, I have an action: ``` [GET("{year:int:length(4)}-{month:range(1, 12)}")] public ActionResult Days(int year,...
To reproduce this bug, one can set the translation key and the route name for an `Action` route. If there are multiple cultures that the translation provider can translate to,...
I think that It would be useful to have an extension method for Html.ActionLink to specify in which culture has to be created the URL link. , Html.ActionLink("LinkText", "Action", "Controller",...
Hi all! I can use Attribute Routing normal in my source code. But when I deploy and run with IIS. I got error A route named '[MyRouteName]' could not be...
When I try to initialize my routes from inside a Test Fixture within another class library, I'm seeing the following types of issues. FIRST: If I attempt something like... routes.MapAttributeRoutes(config...
Trying to get routes to work with MVC 4.0. Global.asax calls AttributeRouting to set things up: ``` RouteTable.Routes.MapAttributeRoutes(config => { config.AddRoutesFromAssembly(Assembly.GetExecutingAssembly()); }); ``` Here is my controller action ``` [Route("account/login",...