79419343

Date: 2025-02-06 21:07:41
Score: 0.5
Natty:
Report link

Assume your AccountUser class has the schema equal to the object you push() in your javascript.

As @dbc mentioned in comment, either change your JSON.stringify() code like:

var jsonData = JSON.stringify(users);

Or change your backend C# code into:

class UserList 
{
    List<AccountUser> Users {get; set;}
}
[HttpPost]
public bool GeneratePassword([FromBody] UserList users)
...
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @dbc
Posted by: Ferry To