I was having a look at this link that shows how to migrate from Web API 2 to MVC 6.
I am trying to have Action methods in my controllers with the HttpRequestMessag
HttpRequestMessag
I found that to use the Microsoft.AspNetCore.Mvc.WebApiCompatShim, it should be services.AddMvc().AddWebApiConventions() see this example instead of services.AddWebApiConventions() as shown in the docs.
services.AddMvc().AddWebApiConventions()
services.AddWebApiConventions()
I'm putting in a feedback item on their docs.