I have an action on my web project which calls to an API
[HttpPost]
public async Task ExpireSurvey(int id)
{
var token =
You can pass multiple parameters in as URL as below example
Parameter name must be the same (case-insensitive), If names do not match then values of the parameters will not be set.
[HttpPost]
[Route("{surveyId}/{expiryDate}")]
public IActionResult Post(int surveyId, DateTime expiryDate)
{
return Ok(new { surveyId, expiryDate });
}
Call URL
http://localhost:[port]/api/[controller]/1/3-29-2018