Need some help with attribute routing. I'm having trouble getting parameters from the HTTP body. The ConnectionID Class includes a property named CValue.
$('#btn').click(function () {
$.ajax({
type: "POST",
url: "http://localhost:49289/api/Resolver/StartRun",
data: { "CValue": connectionID },
success: success,
dataType: "json"
});
});
[Route("api/Resolver/StartRun")]
[HttpPost]
public async Task<string> GetStatus([FromBody]ConnectionID connectionID)
{
}