Using ASP.NET Core 7 Minimal API:
[HttpPost("Create")]
public void Create([FromBody] User user)
{
}
Currently it is only able to accept application/x-www-form-urlencoded
but I wish it can accept application/json
as well.
Using ASP.NET Core 7 Minimal API:
[HttpPost("Create")]
public void Create([FromBody] User user)
{
}
Currently it is only able to accept application/x-www-form-urlencoded
but I wish it can accept application/json
as well.