Manas Mohapatra
What is Attribute Routing in MVC ?
By Manas Mohapatra in .NET on Sep 12 2015
  • Manas Mohapatra
    Sep, 2015 12

    ASP.NET Web API supports this type routing. This is introduced in MVC5. In this type of routing, attributes are being used to define the routes. This type of routing gives more control over classic URI Routing. Attribute Routing can be defined at controller level or at Action level like –[Route(“{action = TestCategoryList}”)] - Controller Level [Route(“customers/{TestCategoryId:int:min(10)}”)] - Action Level

    • 2

Most Popular Job Functions