I\'ve got a new API that I\'m building with ASP.NET Core, and I can\'t get any data POST\'ed to an endpoint.
Here\'s what the endpoint looks like:
If you want to send two or more models, you should use this example:
[HttpPost]
public async Task addUsuario([FromBody] Newtonsoft.Json.Linq.JObject datos)
{
Usuarios user = datos["usuario"].ToObject();
Empresas empresa = datos["empresa"].ToObject();
return Json(await _srv.addUsuario(user, empresa));
}