I have this method:
[HttpPost]
[Route("Post")]
public async Task<IHttpActionResult> Post(int adminTestId)
I am sending the following but it's giving me an error:
POST /api/UserTest/Post
body {"adminTestId":1197}
Can someone tell me how I can set the parameter to the method so it will accept adminTestId?
Here is the message that I am getting:
{"message":"No HTTP resource was found that matches the request URI 'http://localhost:3048/api/UserTest/Post'.","messageDetail":"No action was found on the controller 'UserTest' that matches the request."}