I have a MicroServices project in which a Controller is not working as expected all the time.
I supply some JSON in the HTTP request which looks like this:
\"Active\": true,
and instruct the method to create a DataTable thus:
[HttpPost("Add")]
public async Task<IActionResult> Add([Required, FromBody] DataTable tableData) (...)
The problem I'm facing is that sometimes the DataTable.Row column type is boolean, and other times it is a string containing "True" (note the casing), but that behaviour isn't consistent.
Does anyone know why?