I mean for example if you have bullet points in an outlook email, after pasting it to a textbox element it replaces them with "[]"
and same goes for some french characters
[ApiController] // it is an option to remove this to be able to parse the body properly (see: https://stackoverflow.com/questions/60071028/invalid-model-class-property-error-in-net-core-api)
[Produces("application/json")]
[Route("xx/api/[controller]")]
[PostBodyFilterAttribute("xxController")]
public class xxController : Controller
{
[HttpPost]
public async Task<ActionResult<ResponseFormDto>> PostTodoItem([FromBody]RequestFormDto requestForm)
{
// DOES NOT REACH THIS PART
try
{ ....
"RequestFormDto.cs"
public class RequestFormDto
{
[JsonPropertyName("whencalculated")]
public DateTime? WhenCalculated {
get;
set; }
....
"xxController.cs":
namespace xx.Controllers
{
[ApiController] // it is an option to remove this to be able to parse the body properly (see: https://stackoverflow.com/questions/60071028/invalid-model-class-property-error-in-net-core-api)
[Produces("application/json")]
[Route("xx/api/[controller]")]
[PostBodyFilterAttribute("xxController")]
public class xxController : Controller
{
[HttpPost]
public async Task<ActionResult<ResponseFormDto>> PostTodoItem([FromBody]RequestFormDto requestForm)