How can I get the values in Backend? Key is null and login is false. [FromQuery], [FromBody] or [FromForm] did not work
net core Application (Frontend)
HttpResponseMessage httpResponse = await client.PostAsJsonAsync("stamptimes", new { key, login });
net core Api (Backend)
[HttpPost]
public JsonResult PostNewStamptime(string key, bool login)
{...}
PostNewStamptime([FromBody] LoginModel model). AndLoginModelshould contain key and login properties.[FromQuery]. But this is semantically wrong.