.NET MVC 4 WebAPI POST not working
问题 Core problem: GET works, POST doesn't. I'm new to WebAPI so I'm probably doing something stupid, but I've poked around quite a bit on the 'net trying to figure out why this isn't working. Fairly simple WebAPI C# app. I've tried to get this down to very simple routes: config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); // Add a route where action is supplied, i.e. api/csv/LoadToSQL config.Routes.MapHttpRoute(