In an Asp.net core 3.1 we want to configure the routing.
We have a GetDepart action
[HttpGet("GetDepart/{id}")]
public async Task<ActionResult<Depart>> GetDepart(int id)
{
//Return a Department
}
How to configure routing to replace slashes (/) with question Mark (?) In Url,
therefore instead of having http://localhost:44339/Departs/GetDepart/1, we want to have http://localhost:44339/Departs/GetDepart ?id=1