How to Enable Attribute Routing
Hi Team,I am working on Visual Studio 2012,asp.net mvc 4,
i want to Implement mvc 5 feature,Attribute Routing,for this i have written below code in routeConfig,
but it is not supporting,
routes.MapMvcAttributeRoutes();
but its giving below error
Error 1 'System.Web.Routing.RouteCollection' does not contain a definition for 'MapMvcAttributeRoutes' and no extension method 'MapMvcAttributeRoutes' accepting a first argument of type 'System.Web.Routing.RouteCollection' could be found (are you missing a using directive or an assembly reference?)
D:\Hari\RIS\RIS\App_Start\RouteConfig.cs 17 20 RIS
can any help me pls for implementing attribute routing