Friday, May 20, 2016

Enable Attribute routing

  1. public class RouteConfig
  2. {
  3. public static void RegisterRoutes(RouteCollection routes)
  4. {
  5. routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  6.  
  7. //enabling attribute routing
  8. routes.MapMvcAttributeRoutes();
  9. }
  10. }

No comments:

Post a Comment