Interview Question
Friday, May 20, 2016
Enable Attribute routing
public
class
RouteConfig
{
public
static
void
RegisterRoutes
(
RouteCollection
routes
)
{
routes
.
IgnoreRoute
(
"{resource}.axd/{*pathInfo}"
);
//enabling attribute routing
routes
.
MapMvcAttributeRoutes
();
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment