WebApiCompatShim - how to configure for a REST api with MVC 6
问题 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 HttpRequestMessage bound. This works in Web Api 2. [Route("", Name = "AddTaskRoute")] [HttpPost] public Task AddTask(HttpRequestMessage requestMessage, [FromBody]NewTask newTask) { var task = _addTaskMaintenanceProcessor.AddTask(newTask); return task; } and the requestMessage contains the details about the Http request such as headers, verb, etc. I