i need to know why occurs the next situation and if exists a different solution:
Actually my Api has an error when with Swagger use in method controller a HttpDelete action and Route decoration:
[Route("delete/{id}"), HttpDelete("{id}")]
public async Task DeleteSession(string id)
{ //... any code
}
Actually i only resolve the error when erase the Route decoration:
[HttpDelete("{id}")]
public async Task DeleteSession(string id)
{ //... any code}
I want to know why occurs this error ?