Json – Why is dotnet not reading my request body correctly?
I have a ForumController where I have a function ChangeOrder with a ChangeOrderDto. Here is the code: [HttpPost("change-order")] public async Task<ActionResult> ChangeOrder([FromBody] ChangeOrderDto[] forums) { foreach (var dto in forums) { var forum = await context.Forums.FindAsync(dto.Id); if (forum is not…