Json post int type is always 0

Viewed 1888
[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 }

2 Answers
Related