Define your routes using attributes on action methods in ASP.
I have a very simple test in a test project in a solution using ASP MVC V5 and attribute routing. …
asp.net-mvc unit-testing asp.net-mvc-5 attributeroutingIn ASP.NET Core (v 2.1.5) you can create controllers without having them inherit from Controller class (as you know). And …
c# asp.net-core .net-core asp.net-core-webapi attributeroutingI want to go to http://myserver and be able to get Help Pages as the default home page, so …
asp.net-mvc-4 asp.net-mvc-areas attributerouting asp.net-web-api-helppagesTL;DR I need a way to programtically choose which RoutePrefix is chosen when generating URLs based on the properties …
c# asp.net-mvc asp.net-mvc-4 attributeroutingThe opensource Attribute Routing allows to have multiple route-prefixes. Why does ASP.NET Web API 2.0 does not allow to have …
asp.net-web-api2 asp.net-web-api-routing attributeroutingI've got a following two controllers: [RoutePrefix("/some-resources") class CreationController : ApiController { [HttpPost, Route] public ... CreateResource(CreateData input) { // ... } } [RoutePrefix("/some-resources") class …
c# asp.net-web-api asp.net-web-api2 asp.net-web-api-routing attributeroutingI have a solution with two projects. One Web Api bootstap project and the other is a class library. The …
c# asp.net-web-api asp.net-web-api2 asp.net-web-api-routing attributeroutingHow can I get the url from web api in my view? Example (from the msdn-blog): [RoutePrefix("reviews")] public class …
c# asp.net-mvc asp.net-web-api attributeroutingIf I decorate this web api controller with the Route attribute I can hit the method [Route("api/v{version}/…
c# asp.net-web-api attributeroutingI'm using AttributeRouting with my Web API (MVC 4). Why does this work? [AcceptVerbs("PUT")] [PUT("api/v1/tokens/current")] public …
asp.net-web-api attributerouting