There is the following code
public string Post(string value) { return value; } Why does such code in the MVC 5 controller work fine, and in the Web Api 2 controller I get a 405 Method Not Allowed error with the following HttpBody {"Message":"Запрошенный ресурс не поддерживает HTTP-метод \"POST\"."} ? What exactly and why causes such different behavior?
UPD
I do not ask you to tell me how to do it so that it works - I know: we must either accept not the string , but the DTO, or put [FromBody] in front of the parameter and send =value in the request body. I'm interested in the question above