Top "Attributerouting" questions

Define your routes using attributes on action methods in ASP.

Override controller name in ASP.NET Core

Similar to this question, but for the new ASP.NET Core. I can override an action's routing name: [ActionName("Bar")] …

c# asp.net-core asp.net-core-mvc attributerouting
composite key resource REST service

I've come across a problem at work where I can't find information on the usual standard or practice for performing …

rest asp.net-web-api composite-key asp.net-web-api-routing attributerouting
Multiple optional parameters web api attribute routing

I am new to attribute routing, and I am not sure if this is even possible. I have an attribute …

c# asp.net asp.net-web-api asp.net-web-api-routing attributerouting
ASP.NET MVC 5 Attribute Routing: Url.Action returns null

I am experiencing an issue with a refactoring of our payment processing action method (called by our 3rd-party online payment …

asp.net routes asp.net-mvc-5 url-routing attributerouting
Route Prefix VS Controller Name ( Web api )

I was wondering that if we use RoutePrefix attribute in our web api controller with a different name from controller's …

c# asp.net-mvc asp.net-web-api asp.net-mvc-routing attributerouting
MVC Attribute Routing - Default Controller Index with GET and POST

We have an MVC 5.1 project and are using attribute routing. Everything is working fine except the default page which has …

c# asp.net-mvc-5 asp.net-mvc-routing asp.net-mvc-5.1 attributerouting
Multiple routes assigned to one method, how to determine which route was called?

I am working on a small ASP.NET MVC project at the moment. The project was released a few month …

c# asp.net-mvc asp.net-mvc-routing attributerouting
MVC Attribute routing with Url.Action not resolving route

I cannot get @Url.Action to resolve to the url I am expecting based on the attribute route I have …

asp.net-mvc routes url-routing asp.net-mvc-routing attributerouting
Asp.Net WebAPI and AttributeRouting - no overloaded attribute constructor?

I have just downloaded AttributeRouting NuGet package for WebAPI and having a problem within my controller. I thought the way …

asp.net-web-api asp.net-web-api-routing attributerouting
How to determine Route Prefix programmatically in asp.net mvc?

I wanted to provide some URL separation for my public/anonymous controllers and views from the admin/authenticated controllers and …

c# asp.net-mvc asp.net-mvc-5 asp.net-mvc-routing attributerouting