❔ My asp.net endpoint throws a error when it receives string

My endpoint takes a integer and 2 strings from the frontend. The frontend is sending a integer and 2 dates. Since these are typically turned into strings when you send it over and it throws a error about it I am rather lost.

[HttpGet("endpoint/{myInt}")]
public string MyFunc(int myInt, string s1, string s2){code}


Does anyone know what's going on?
Was this page helpful?