Let's prepare your psc and other interviews
To enable attribute routing in asp.net mvc we must call a method named “MapMvcAttributeRoutes” in RouteConfig…