[HttpPost("method")]
public string Method(int number)
{
return number.ToString();
}
Why number is always 0?
Its possible to use json post with primitive types like this?
My post: { "number" : 3 }
[HttpPost("method")]
public string Method(int number)
{
return number.ToString();
}
Why number is always 0?
Its possible to use json post with primitive types like this?
My post: { "number" : 3 }