I have upgraded my project to MVC Core 2.2 and suddenly all WEB Api endpoints that received the parameters from query or form data started to return 415 Unsupported Media Type.
Here is example method in my web apis
[HttpPut()]
public int Add(Entities.UserMember user)
{
Service.UserCreate(user);
return user.Id;
}
This worked perfectly fine with MVC Core 2.1 accepting the both from url and form. Now it seems that i need to specify a specific attribute per each endpoint and it seems that only one can be used. Is there any way to allow same behavior or i need to change my code and add FromQuery() to all of my api methods ?