I am using ASP.NET Core 2.1 with Web API and posting works fine when I send one object. How can I send this type here.
Until now I have tried this approach, https://ibb.co/dKztDGv, but without success. I don't get an error but I get the values from the last object only. Please help me get all the values in the array.
//I post this type of objects in array
[
{something...},
{something...}
]
//what I've tried
public IActionResult PostNewLanguages([FromBody] JObject newLanguages, string id)
{
var oneUser = GetSpecificUser(id);
JObject class1DataJson = newLanguages;
return Ok();
}