DotNetAnalyzers / AspNetCoreAnalyzers

MIT License
62 stars 4 forks source link

Check that route parameter matches method parameter type #11

Closed JohanLarsson closed 5 years ago

JohanLarsson commented 5 years ago

Docs

[ApiController]
public class OrdersController : Controller
{
    [HttpGet("api/orders/{id:int}")]
    public async Task<IActionResult> GetOrder(int id)
    {
        ...
    }
}