I am creating a custom JsonConverterto parse datetimeoffset, to fix utc issue with offset. I am following
Besides, you can also add [FromBody]
to specify the source because it binds the form data by default if you use asp.net core MVC project:
[HttpPost]
public IActionResult Index([FromBody]Travel model)
{
//do your stuff...
}