none
Routes & WebAPI Routes RRS feed

  • Question

  • Hi,

    I have a webAPI where in  the RouteConfig RegisterRoutes I have

    routes.MapRoute ....

    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }

    In WebApiConfig config.Routes.MapHttpRoute  I have  

    routeTemplate: "api/v1/xxx/yyyy{id}

    defaults: new .... but I don´t see how to assim a default controller and action here. How is that done?

    Thank you so much,

    PG

    • Moved by Sabah ShariqMVP Thursday, July 20, 2017 3:55 AM Moved from Visual C#
    Wednesday, July 19, 2017 9:54 PM

All replies